What about plain old...
eval { test() }; if ( $@ =~ /Undefined subroutine/ ) { # we know it doesn't exits }
Oh, wait, I think I get it. We want to know if it exists before we run it...
In reply to Re: how to find a subroutine exists or not
by pileofrogs
in thread how to find a subroutine exists or not
by kingofking
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |