![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re^4: Opinion: where Perl5 wasn't attractive for meby RonW (Parson) |
on Nov 19, 2014 at 20:25 UTC ( #1107817=note: print w/replies, xml ) | Need Help?? |
I think that, in Perl, an automine pragma would be very confusing. Currently, in the absence of strict, Perl auto-declares variables as package (aka our) variables on first use. An automine pragma would turn that on its side by auto-declaring them as local1 (aka my) variables. Whatever the merits of defaulting variables to local scope might be, doing so in Perl would likely be too confusing. --- 1 as in "local scope", not "localized package variables".
In Section
Meditations
|
|