in reply to Re^2: prob w/ gatekeeper subroutine
in thread prob w/ gatekeeper subroutine

Use string comparison operator (eq) instead of numeric (==).
if($x eq "pass")

Equality Operators