in reply to Strange behaviour - cgi related
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' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Strange behaviour - cgi related
by kiat (Vicar) on Dec 16, 2003 at 04:46 UTC | |
by duff (Parson) on Dec 16, 2003 at 04:49 UTC | |
by kiat (Vicar) on Dec 16, 2003 at 05:04 UTC | |
by duff (Parson) on Dec 16, 2003 at 15:32 UTC |