Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Parse Question

by Corion (Pope)
on Dec 10, 2019 at 16:59 UTC ( #11109933=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11109933]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2020-06-04 06:05 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (30 votes). Check out past polls.