in reply to Re^2: Parse Question
in thread Parse Question

My first thought is to look at your input file. What does it look like? Are you sure that you opened the right file?

If your print statement doesn't work, maybe you are not reading in the correct file from your code?

How are you calling your program?

Replies are listed 'Best First'.
Re^4: Parse Question
by catfish1116 (Beadle) on Dec 10, 2019 at 20:27 UTC

    run from the command line: $ ./ParseScript XMLmessage $line = <> ;

      I asked you four questions. You answered one question.

      Without seeing some representative input to your script, it is really hard to guess why your program behaves as you say it does. Something is not as you think it is, otherwise your program would behave as is obvious. You keep on hiding the input file despite being asked for it. Maybe now is a good time to reconsider that stance.