http://qs321.pair.com?node_id=28784

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??