Ye monks who doth perl encode!
Can I add functions to a package on the fly? For example, could something like this be made to work?
package blort; sub add_method { my $name = shift; ## Do some Magic } ... use blort; blort::add_method('foo'); blort::foo();
I want to know how things like Class::MethodMaker and similer things work. Class::MethodMaker creates the subs at compile time. Is it possible to add subs during run time?
Thanks!
-Pileofrogs
Update: You all rock!! ++ all round! Thanks!
In reply to Sub on the fly? by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |