in reply to Reading a file into an array

I tried your script and it worked the way it should (well with the addition of the comma in your open statement).

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