in reply to Re: Lexical variables question
in thread Testing for filled-in box with CGI::param() ?

But only a return of "undef" will cause defined to be false, anything else and $var is still defined, even a blank.