Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Sub ref from string without evalby kennethk (Abbot) |
on Apr 02, 2012 at 14:51 UTC ( [id://963028]=note: print w/replies, xml ) | Need Help?? |
I suspect this is an XY Problem, but you can do this using Symbolic references.
Update: It appears my $sub_ref = \&{'Foo'}; passes strict when &{'Foo'}; does not. Huh? #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In Section
Seekers of Perl Wisdom
|
|