in reply to Re: Re: Re: scalar my vs list my
in thread my $var = ''; vs. use constant VAR => '';
What about this unruly specimen:
The one thing that has bugged me about my() was the way it used to cling to the real block, and not the virtual block. As in:(my ($filename, my ($filemode, my ($opmode, my $filetype)))) = "/path/file", "immolate", "seek", "image/gif";
IIRC, there used to be a condition that generated an error for the second declaration. This seems to have been fixed, thankfully.for (my $n = 0; $n < 100; $n++) { # ... (Stuff) } # ... (More Stuff) for (my $n = 0; $n < 100; $n++) { # ... (Stuff) }
|
---|
In Section
Seekers of Perl Wisdom