Let\'s say I have a perl module file and I want to include and use it dynamically at runtime. Said module includes a class that I need to instantiate without knowing its nam
You can do this with eval.
eval
my $module = "Foo"; eval "use $module;1" or die($@); # Couldn't load module