|go ahead... be a heretic|
Runtime loading of arbitrary objectsby Anonymous Monk
|on Aug 21, 2000 at 13:29 UTC||Need Help??|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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??