in reply to Exclusive pattern matching..

Use eq instead. :)
my $input = shift; if($input eq $scalar) ....
If you really want a regexp for this though, you can use ^ and $ like this:
$string =~ /^user1$/;
^ matches only at the beginning of the string, and $ only at the end, so this way you force it to match only if it matches the whole string.
You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.