in reply to How can I call a Perl sub with an object from a sub name stored in a var?
&$self->$mysub ( eval $myargs )
WHY? oO
What is the content of $self?
That's pretty cryptic code. By convention is $self an object (i.e. a blessed ref) ... not the name of a sub.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I call a Perl sub with an object from a sub name stored in a var?
by misterperl (Friar) on Dec 08, 2020 at 16:25 UTC | |
by LanX (Saint) on Dec 08, 2020 at 16:42 UTC |