in reply to Re: How to check if a function exists within a package?
in thread How to check if a function exists within a package?

why not: sub method_exists_in_obj($$) { my $obj = shift;#object as href my $method = shift;#method name to test for return 1 if (defined(&{(ref $obj)."::".$method})); return 0; }
  • Comment on Re^2: How to check if a function exists within a package?