while ( my $line = <$fh> ) { chomp $line; my ( $name, $passwd ) = split /:/, $line; next unless $name eq $userName; .... }
You mak also want to look at Term::ReadKey or IO::Prompt for the password prompt
In reply to Re: File input not working properly?
by hipowls
in thread File input not working properly?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |