I tried perl2exe with my perl code, it created an exe but the app. would not launch and got some warnings. So I tried perl2exe with the sample code tksamp.pl that came with it and I got the same warnings when I ran the application:
C:\Perl2exe>tksamp
syntax error at PERL2EXE_STORAGE/warnings.pm...
Can someone explain why/how the array @buf is modified in the following simple program. I thought only the variable $item is supposed to be modified.
my @buf = ("a1\n", "a2\n");
print @buf;
foreach my $item (@buf) {
chop $item;
}
print @buf;
#the result is
a1
a2
a1a1
I setup a button with a dis-able state initially:
$Bt_Done = $Frame->Button(-text => 'Done',
-state => 'disabled'
...)
and want to enable it later in another routine but I couldn't figure out the way to do that:
$Bt_Done->state = enabled; #This doesn't work
$Bt_Done->state => enabled...
Don't know why I get an extra space in front of line 2 and 3 when I use and array:
#!/usr/local/bin/perl -w
my @buf;
my $str1 = "line 1\n";
my $str2 = "line 2\n";
my $str3 = "line 3\n";
push @buf, $str1;
push @buf, $str2;
push @buf, $str3;
print "The content of buffer is:\n";
print "@buf"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.