in reply to Re: Parse Question
in thread Parse Question

In my first print statement, I just wanted to see if the message was read in. Basically it is just one record from an XML file, as the entire XML file would be too big to test this simple code. Initially, I was splitting the message on the '>', but that didn't work, so I used N to see if that would change anything. Since my second print statement wasn't working, I commented it out, and just tried to throw another print statement at the end to see if it would execute, (it didn't). Any thoughts ?

Replies are listed 'Best First'.
Re^3: Parse Question
by Corion (Patriarch) on Dec 10, 2019 at 17:56 UTC

    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?

      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.