my $cgi = new CGI; my $must_have_param = $cgi->param('foo'); if(not defined $must_have_param) { $must_have_param = 'Alive!'; }