sierrathedog04 has asked for the wisdom of the Perl Monks concerning the following question:
Then I realized that the text field I was calling existed on a different form than the one I was submitting. Yet CGI.pm's param() function did not return an error when I called this non-existent field.
Using CGI.pm there appears to be no way to tell at runtime whether param('myfield') is returning an empty string because:
the submitted form does not include form variable by that name.
Is there any way to force CGI.pm to return an error when I call the param() function for a parameter that does not exist?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Any Way To Distinguish Undef From Empty Parameters When Using CGI.pm's Param() function?
by Masem (Monsignor) on Jun 01, 2001 at 20:25 UTC | |
|
Re: Any Way To Distinguish Undef From Empty Parameters When Using CGI.pm's Param() function?
by bikeNomad (Priest) on Jun 01, 2001 at 20:22 UTC | |
|
Re: Any Way To Distinguish Undef From Empty Parameters When Using CGI.pm's Param() function?
by merlyn (Sage) on Jun 01, 2001 at 21:13 UTC |