Seeing how thus far, you haven't relayed any version information, it is extremely unlikely you found a bug. The code you copy/pasted doesn't match the current version of CGI module.
This looks ok, but the function calling looks like, it program some kid:
You can always write your own
In reply to Re^5: Problem with CGI::Vars
by Anonymous Monk
in thread Problem with CGI::Vars
by Chipper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |