For functions, defined.
if ( defined( &perlmonk::funnyfunction ) )
For methods, can. Checks inheritance.
if ( perlmonk->can('funnyfunction') )
if ( $obj->can('funnyfunction') )
In reply to Re: How to check if a function exists within a package?
by ikegami
in thread How to check if a function exists within a package?
by rapide
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |