You forgot to remove trailing whitespace (newlines) chomp or @a = map { my $l = length $_; unpack "A$l", $_; } <FILE>;
In reply to Re: compare array with file
by Anonymous Monk
in thread compare array with file
by cinil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |