In that vein you can do this:
$q = new CGI; my $val = $q->param('val') || 'default'; # but this does not work as you might expect my @vals = $q->param('val') || ('default');
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: Regexp context with ||
by tachyon
in thread Regexp context with ||
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |