Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> Not really, it lets perl catch typos, for example if you have $the_variable_I_want_to_check = 0; somewhere in your code and then $the_varaible_I_want_to_check = 1; later, using strict and my will raise an error at compile time. Python would just silently allow it.
should be mentioned that Perl has an "used only once" warning, I'm surprised that python doesn't. > Also having automine would mean that using perl 5 code that wasn't written with strict would compile, but turn package variable into lexicals. automine or whatever we'd call it must obviously be a pragma extending strict, not a default feature. New pragmas breaking old code is no surprise.
updatelooks like used-only-once gets deactivated with explicit declaration
Cheers Rolf In reply to Re^2: A short whishlist of Perl5 improvements leaping to Perl7 (used only once)
by LanX
|
|