$var will be defined, but false. Try if ($var) instead.
Why do you think that $var can't be "undef"? If param returns "undef" then $var will be undefined.
--"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Re: Lexical variables question
by davorg
in thread Testing for filled-in box with CGI::param() ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |