in reply to Re^2: Reading File Into Array
in thread Reading File Into Array

Not a cure here, but please, save yourself much future grief, by getting into the habit of using strict and warnings.

Also, read the FAQs here: good questions show output, desired output and (errors and warnings) if any.


Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
  1. code
  2. verbatim error and/or warning messages
  3. a coherent explanation of what "doesn't work actually means.