in reply to compare array with file
You forgot to remove trailing whitespace (newlines) chomp or @a = map { my $l = length $_; unpack "A$l", $_; } <FILE>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: compare array with file
by cinil (Initiate) on Apr 30, 2012 at 12:27 UTC |