in reply to Function name in a variable, can't recall the concept
That's a symbolic reference, which is not allowed under strict:
So if your Pythonista were to look into it, he would find a lot of "Don't do that!"perl -E "use strict; use warnings; sub hello { say 'Hi' }; my $sub = ' +hello'; $sub->()" Can't use string ("hello") as a subroutine ref while "strict refs" in +use at -e line 1.
|
|---|