http://www.perlmonks.org?node_id=862648


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