# if ($usedpw ne m/$pw/); # should be if( CONDITION ) #no semicolon here { # BLOCK }