in reply to Variable/if question...
UPDATE: You might also want to try checking your open statement to make sure it worked.if($pword==$cpword){ open (FILE, "memberlist.txt"); while(<FILE>){ push @lines,$_; close FILE; } }
The $! gives you the error message from the open command if it failed.open (FILE, "memberlist.txt") || die "Cannot open: $!";
|
|---|