in reply to Any Way To Distinguish Undef From Empty Parameters When Using CGI.pm's Param() function?

param('noSuchKey') seems to return undef if there is no such field, so you can use defined:
my $param = param('whatever'); if (!defined($param)) { # do something }
  • Comment on Re: Any Way To Distinguish Undef From Empty Parameters When Using CGI.pm's Param() function?
  • Download Code