in reply to elsif loop

It looks like you're doing string comparisons, but you're not being consistent.  Sometimes you use eq, and sometimes you use ==.

Try using eq for checking equality, and ne for checking inequality (instead of == and !=, respectively).

Your use of $null is also a little suspicious; are you sure you don't mean $hashPassword eq "" or perhaps !defined $hashPassword?


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/