in reply to Calling a class method name in a scalar using :: syntax
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Calling a class method name in a scalar using :: syntax
by broquaint (Abbot) on Sep 04, 2003 at 14:46 UTC | |
by rufus (Initiate) on Sep 04, 2003 at 15:54 UTC |