in reply to Need help reading and writing to a file.
$INPUT{filecontents} =~ tr/\r//d;
Otherwise, perhaps the best you can do is to add an else clause:
Wrapping delimiters around variables lets you see if any whitespace has sneaked through.if ($INPUT{account} eq $account_line) { # print ban message and such } else { warn "($INPUT{account}) didn't match <$account_line>\n"; }
(Side note: I'd use a tied hash instead of a flat file. It's much more efficient.)
|
|---|