Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Parsing an file that has xml like syntax

by Anonymous Monk
on Apr 02, 2014 at 19:09 UTC ( [id://1080825]=note: print w/replies, xml ) Need Help??


in reply to Re: Parsing an file that has xml like syntax
in thread Parsing an file that has xml like syntax

That's brilliant, that works really well. Thanks a lot. I have been trying for ages to get the tag and value out correctly. Would you be able to help me with a loop that for each JOBID it would get the value of the corresponding TYPE* value and FILE* value and print this info on one line of output. So the first line of output would be:

12345 101 add /tmp/file_data_gros

Then the loop moves onto find the next JOBID and the values for the associated TYPE* and FILE. The next line printed would be:

12345 102 delete /tmp/file_myvalues

And will continue to do this until all JOBID's and associated TYPE*s and FILE*s have been processed in the file

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-19 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found