in reply to Re: adding to hash/writing to file errors
in thread adding to hash/writing to file errors
login($username, %logins);
then the start of the login sub should be
and thismy $username = shift; my %logins = @_;
becomesif ($pass <=> $logins{$username})
ie use a string comparison operator.if( $pass eq $logins{$username} )
Numeric test:
becomesif ($selection == "1")
Cheersif ($selection == 1)
|
|---|