in reply to Re^3: 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?
> $method ... can also be an overloaded object though,
Is it really possible to overload the arrow operator -> for method calls from the RHS???
I only see dereferencing listed ${} @{} %{} &{} *{}
with_assign => '+ - * / % ** << >> x .', assign => '+= -= *= /= %= **= <<= >>= x= .=', num_comparison => '< <= > >= == !=', '3way_comparison'=> '<=> cmp', str_comparison => 'lt le gt ge eq ne', binary => '& &= | |= ^ ^= &. &.= |. |.= ^. ^.=', unary => 'neg ! ~ ~.', mutators => '++ --', func => 'atan2 cos sin exp abs log sqrt int', conversion => 'bool "" 0+ qr', iterators => '<>', filetest => '-X', dereferencing => '${} @{} %{} &{} *{}', matching => '~~', special => 'nomethod fallback ='
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How can I call a Perl sub with an object from a sub name stored in a var?
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 | |
by tobyink (Canon) on Dec 10, 2020 at 12:05 UTC |