in reply to Re^3: skipping lines when parsing a file
in thread skipping lines when parsing a file

I am doing this in windows. Could that be a the problem why it is not parsing?
LomSpace
  • Comment on Re^4: skipping lines when parsing a file

Replies are listed 'Best First'.
Re^5: skipping lines when parsing a file
by ssandv (Hermit) on Aug 20, 2009 at 17:50 UTC

    Conceivably. It's possible Perl is confused by your line terminators on Windows, and is slurping the entire file in as one single line. You can test this by writing a quick piece of code that reads and prints out one line at a time, printing something after each line (or waiting for <STDIN>, or something else like that.) I recommend you do your debugging by printing to the screen instead of a file, though, it's faster (if you think it's a data format problem. Obviously if my other response is correct and it's a file access problem, you'll have to do file access to discover it.)