if $hidden_string eq "true"{ &dothis; } #### if (defined($hidden_string)){ $hidden_string = ""; &dothis; }