Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- "my $x;" in while or for block?
November 10, 2012, 11:22 pm
rate this thread
Is this OK?:
$ cat bar
my %foo = (
bob => "green",
sue => "blue",
for (keys %foo)
# acceptable?? (want $x to be undefined at start of each iteration)
printf "hi\n" unless(defined ($x));
$x = 1;
printf "HO\n" unless(defined ($x));
- » Net::IDN::Encode Build procedure in external dir.?
- — Next thread in » PERL Discussions