in reply to Parse Question

What does your line look like? Maybe your XML file only has a single line? You discard the first line and do not do anything with it?

Are you sure you want to split your input on the letter N?

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

    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 ?

      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 = <> ;