Perl-Sensitive Sunglasses | |
PerlMonks |
(dkubb) Re: (2) Cross-developing in 5.005 and 5.6 (code)by dkubb (Deacon) |
on May 16, 2001 at 11:13 UTC ( [id://80821]=note: print w/replies, xml ) | Need Help?? |
Remember that strict is only going to be honored in the scope it was declared in. In this snippet of code, strict isn't making any difference to the code outside of the BEGIN block. Try placing a non-lexically scoped variable after the BEGIN block, and watch as perl let's it pass without complaining.
In Section
Seekers of Perl Wisdom
|
|