in reply to Re^2: 'use subs' causes method to vanish
in thread 'use subs' causes method to vanish
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: 'use subs' causes method to vanish
by gnosti (Chaplain) on Feb 05, 2009 at 23:56 UTC | |
by chromatic (Archbishop) on Feb 06, 2009 at 02:31 UTC | |
by gnosti (Chaplain) on Feb 06, 2009 at 08:17 UTC |