Gossamer Forum
Home : General : Perl Programming :

@Passwords?

Quote Reply
@Passwords?
I have

$password = "admin";

If (inputpwd eq $password) { then so on....

-----------------------------------------------

I want to have 2-3 passwords in $password

I tried this....

@password = ("admin1" , "admin2")

If (inputpwd eq @password)..... BUT its not working?????



Any help.

Zeshan.

Quote Reply
Re: [zeshan] @Passwords? In reply to
if (grep $inputpwd eq $_, @password) {