laziness, impatience, and hubris | |
PerlMonks |
Re^3: 'use subs' causes method to vanishby chromatic (Archbishop) |
on Feb 05, 2009 at 22:51 UTC ( [id://741721]=note: print w/replies, xml ) | Need Help?? |
I only encountered this because I used a script to use subs for all subs, to be able to begin to get rid of parentheses for non-object subs. As you've seen, that's a bad idea. If you're rigorous about the order in which Perl compiles your code, you can get away with it... but I like to avoid code which relies on a well-defined order of appearance in the compilation process, as it seems fragile.
In Section
Seekers of Perl Wisdom
|
|