my $object = Foo->new; if ( $object->can( $some_method ) ) { # it's good } else { # it's bad }
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to Re: Re: detecting improperly called subroutines
by Ovid
in thread detecting improperly called subroutines
by drfrog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |