in reply to Testing for filled-in box with CGI::param() ?

No. $var has the value of whatever param('search_string') returns. If that function returns an undefined value, the condition in the if statement will be false.

This has nothing at all to do whether $var is a lexical variable or not.

Abigail