if (defined &test){ print "yes\n"; }else{ print "no\n"; }