in reply to line numbers and line content into hash

I might be missing what you're saying, but why create the hash to begin with? The array is ordered, and the index+1 will tell you the line number.
-Will
  • Comment on Re: line numbers and line content into hash