in reply to CGI Programming Style With Empty Params
So, having said that, I find I do this a lot:
And that seems to be a fairly reusable pattern.if (defined(my $foo = param('foo')) { .. do something with $foo } else { .. foo isn't present, now what? }
-- Randal L. Schwartz, Perl hacker
|
|---|