my $param = param('whatever'); if (!defined($param)) { # do something }