CGI.pm note

Bradley Baetz bbaetz at acm.org
Tue May 6 23:53:38 UTC 2003


On Tue, May 06, 2003 at 09:22:13AM -0700, Stephen Lamm wrote:
> 
> Prototypes are good when you want a function to behave like a built-in.
> They are not meant for type checking. They should probably only be
> used where needed.

I don't want it for type checking, so much as for type coersion. If the
param is a scalar, then wantarray is false, and so CGI.pm's param
routine returns undef rather than ().

Bradley



More information about the developers mailing list