Why not just let Perl tell you?
if( !defined &$c ){ eval{ $c->() }; print $@ };; Undefined subroutine &main::test1 called at (eval 19) line 1, <STDIN> +line 14.
In reply to Re: Getting the name of sub from sub reference
by BrowserUk
in thread Getting the name of sub from sub reference
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |