in reply to Dynamic Subroutines
You can define an AUTOLOAD sub.
It is called in place of any undefined sub and receive in the $AUTOLOAD variable the name of the sub originally invoked. You can test $AUTOLOAD to see if it matches your naming conventions (in your example /sub\d+/).
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dynamic Subroutines
by Anonymous Monk on Jul 13, 2009 at 18:32 UTC | |
by mzedeler (Pilgrim) on Jul 13, 2009 at 23:28 UTC |