APM: using a scalar var as a module
jeremyb at univista.com
jeremyb at univista.com
Tue Nov 25 21:44:58 CST 2003
I'd like to have a subroutine I'm working on load the module name contained
in $module. Eg.)
############################
my $module = choosemodule();
use $module;
sub choosemodule{
# do special module choosing magic here
return $thechosenone;
}
############################
This doesn't work because use doesn't want to interpolate $module for me.
Again, I want to be able to load the module name contained in $module. Does
anyone know how to do this?
Thanks,
Jeremy
More information about the Austin
mailing list