Ahem! You're testing param('$neg') (ie a parameter with the four character name $neg), but resetting the param(-name=>"$neg") (ie. one of foo, bar or baz).
Change the quotes and the problem goes away.
In reply to Re: testing for the zero length string (blank value) in cgi fields
by tommyw
in thread testing for the zero length string (blank value) in cgi fields
by scratch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |