if (defined(param('foo'))) { print "yes, we have a foo\n"; } else { print "out of luck, pal\n"; }