in reply to Re^2: My questions: new to perl
in thread My questions: new to perl
That's an incomplete answer. local can localized elements of lexical arrays (and hashes) as well.
Thanks, added.
That's the first time I hear someone claim strict has anything to do with backwards compatibility reasons. If that were true, no code written in the past 15 years would have had the need for "no strict"
You didn't finish your thought. Are you saying you disagree with the conclusion? How so?
By the way, strict is now on by default in Perl 5.12 (the language, not the interpreter).*
But on other cases, it's just plain wrong [...] For instance, the code I posted above isn't warnings free
Comma in qw() is most definitely likely to be an error. I for one have taken advantage of this warning a couple of times.
* — To use Perl 5.12, add use 5.012;.
Update: Added "*".