my $this = $q->param("this"); if ( $this = "that" ) { # do something for possibly the wrong reason } else { # not likely }