Yes, there are ways of fooling strict. It's simpler and clearer to just turn it off in the code in question.
my $func_name = 'f'; my $cr = do { no strict 'refs'; \&$func_name }; say $cr->();
In reply to Re^3: How to map function name to coderef?
by ikegami
in thread How to map function name to coderef?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |