To replicate the defined-or operator, ancient versions of Perl require the far clumsier:
my $foo = defined $q->param('foo') ? $q->param('foo') : 'Default Value';In reply to Re^6: Passing flags between invocations of a cgi script
by chromatic
in thread Passing flags between invocations of a cgi script
by Herbert37
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |