in reply to Re: Detecting a post via cgi
in thread Detecting a post via cgi
A somewhat cleaner way of doing what you accomplish:
my $param = $cgi->param('foo') || ''; if ($param) { #... }
Or, if you always untaint your variables:
my $_param = $cgi->param('foo') || ''; my ($param) = $_param =~ /^($some_regex)$/;
Cheers,
Ovid
New address of my CGI Course.
Silence is Evil (feel free to copy and distribute widely - note copyright text)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Detecting a post via cgi
by cbro (Pilgrim) on May 28, 2003 at 15:15 UTC | |
by Ovid (Cardinal) on May 28, 2003 at 15:23 UTC | |
by cbro (Pilgrim) on May 28, 2003 at 15:27 UTC |