require('perlmonk.pm'); if(defined 'perlmonk'->funnyfunction()) { print "YES it DOES exist!"; } else { print "NO, it does NOT exist!"; }