in reply to Re^2: How can I call a Perl sub with an object from a sub name stored in a var?
in thread How can I call a Perl sub with an object from a sub name stored in a var?
$object->$method( @args );
$method can be a string (method name) or a coderef.
It can also be an overloaded object though, in which case it is stringified, not coderefified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How can I call a Perl sub with an object from a sub name stored in a var?
by LanX (Saint) on Dec 09, 2020 at 18:44 UTC | |
by tobyink (Canon) on Dec 10, 2020 at 08:22 UTC | |
by LanX (Saint) on Dec 10, 2020 at 10:21 UTC | |
by tobyink (Canon) on Dec 10, 2020 at 11:20 UTC | |
by LanX (Saint) on Dec 10, 2020 at 11:39 UTC | |
| |
|
Re^4: How can I call a Perl sub with an object from a sub name stored in a var?
by jo37 (Curate) on Dec 09, 2020 at 17:47 UTC | |
by tobyink (Canon) on Dec 10, 2020 at 08:26 UTC |