my $input = shift; if($input eq $scalar) .... #### $string =~ /^user1$/;