Next | Tricks of the Wizards | 47 |
Straightforward:
my $fake_pack; BEGIN { $fake_pack = 'Fake00'} sub new_package { return "HashEval::" . $fake_pack++; }
Symbol::gensym already does something like this
After we're done with a package, we can destroy it by using the Symbol::delete_package function
Next | Copyright © 2003 M. J. Dominus |