I can run a function this way (in the main package namespace):
&main::aMainFunctionName(@param);
How do I run it with a namespace var?
$space = 'main';
eval \&${space}::aMainFunctionName(\@);
Then, when and if that is possible, can I pass namespace to another
package and use functions from caller? As in
AnotherPackage::function(*{aMainFunctionName}{PACKAGE});
Then in the other package
function {
my $hisPackage = shift; # this is the package name
Thanks.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/