Hello,
I have a similar problem. I want to call a class method of a "dynamic" class "dynamically", i.e. I want to make a call like
my $result = MODULES::$submodule::$method ($data);
I tried different things like
my $request = "MODULES::$submodule::$method"; my $result = &$request ($data);
or
my $result = eval "$request ($data)";
but I didn't succeed. The even worst thing is that the program keeps on running without any error, only the method trying to call another method seems to "die" without any hint.
Actually this problem is common to my current project. Does anybody have a clue about that?
Thanks.
Marco
In reply to Re: Calling a class method name in a scalar using :: syntax
by rufus
in thread Calling a class method name in a scalar using :: syntax
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |