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.
In reply to Re: How to determine if a package method is defined
by Your Mother
in thread How to determine if a package method is defined
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |