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

In CGI.pm versions 2.63 and above, you should be able to check the defined() of what is returned; if the keyword is there but no value, you'll get an empty, but defined string. EG:
my $value = defined( $cgi->param( 'text' ) ) ? $cgi->param( 'text' ) : '';

Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
  • Comment on Re: Any Way To Distinguish Undef From Empty Parameters When Using CGI.pm's Param() function?
  • Download Code