in reply to How do I dynamically populate a hash after parsing columns from a file

IomSpace:

I was able to reproduce your problem with a couple tweaks:

So, I think you're running on a windows box, so perl is assuming CRLF line endings, but your data comes from a Unix box and has LF endings. So your line to consume the header eats the entire file, and your while loop has nothing to process. Anyway, that's my guess.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: How do I dynamically populate a hash after parsing columns from a file
  • Download Code