laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
My problem is: how do I instantiate an object dynamically
runtime, when I only know the name of its class? Eg. something like: my $calvin = SomeFunkyLoader("Calvin::Hobbes"); # invokes Calvin::Hobbes->new The only thing about the objects, the class name, will be provided run-time only. How do I do this?? In reply to Runtime loading of arbitrary objects by Anonymous Monk
|
|