in reply to Re: detecting improperly called subroutines
in thread detecting improperly called subroutines

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.