This does not work when the symbol is a constant sub and you're using perl 5.9.3+. defined &test s the documented and backwards compatible way to test for this.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re^2: how to find a subroutine exists or not
by diotalevi
in thread how to find a subroutine exists or not
by kingofking
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |