in reply to How to determine if a package method is defined

Not quite a direct answer to the question but you can can.

cow@moo>perl -MCGI -le 'print CGI->can("param") ? "yes" : "no"' yes cow@moo>perl -MCGI -le 'print CGI->can("paramz") ? "yes" : "no"' no

See UNIVERSAL and search around in here for more on it.