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 reply to Re^3: 'use subs' causes method to vanish
by chromatic
in thread 'use subs' causes method to vanish
by gnosti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |