|P is for Practical|
How can I call a Perl sub with an object from a sub name stored in a var?by misterperl (Pilgrim)
|on Dec 08, 2020 at 16:16 UTC||Need Help??|
misterperl has asked for the wisdom of the Perl Monks concerning the following question:
Hello respected ones!
I want to call
$self->$mysub ( $myargs)
my usual approach is something like
&$self->$mysub ( eval $myargs )
which has the undesirable action of adding "main::" in front of $self and of course blowing up the syntax. I also tried "eval" instead of && no joy..
TY and Happy Holidays!