in reply to A function to check if subroutine exists?
"perldoc -f defined" or, if you have Perl 5.6 or later and don't care to be portable to older versions of Perl, see "perldoc -f exists".