It's because you're calling param() in a list context, so for the non-existent parameter you get an empty list. It's just as if you had done
my %hash = ( 'foo' => (), 'bar' => 'baz' ); # which is the same as ... my %hash = ( 'foo', 'bar', 'baz' );
In reply to Re: Strange behaviour - cgi related
by duff
in thread Strange behaviour - cgi related
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |