Do you know where your variables are? | |
PerlMonks |
Re^2: Function name in a variable, can't recall the conceptby ikegami (Patriarch) |
on Apr 02, 2019 at 15:33 UTC ( [id://1232026]=note: print w/replies, xml ) | Need Help?? |
It's technically the dereference of a symbolic reference that's not allowed. However, there is a (documented) exception:
This means that while
isn't allowed,
is allowed. ($invocant->$method_name() is also allowed under strict.)
In Section
Seekers of Perl Wisdom
|
|