Are you sure that the line-endings are as you expect them to be? They should be equal to the value of $/ (also known as $INPUT_RECORD_SEPARATOR in the English module) or otherwise chomp doesn't work.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re: Reading a file into an array
by CountZero
in thread Reading a file into an array
by yam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |