in reply to Re^2: Parsing XML output from `qstat`
in thread Parsing XML output from `qstat`

so I switched the $qstat variable in my original example to reading the output from a file. Once I did that, XML::Smart worked perfectly

Now that is a sign of quality :) like kcott I cannot reproduce that ... string or filename XML::Smart spits out 1

It does get a bit messy compared to XML::Smart, though.

What does that mean?

DOM is the standard , used across all programming languages everywhere...

If I'm chosing nonstandard I'm going with XML::Twig or XML::Rules

Replies are listed 'Best First'.
Re^4: Parsing XML output from `qstat`
by Macslayer (Initiate) on May 06, 2014 at 16:58 UTC
    Okay, I'll check out XML::Twig; looks cool! I did find the actual root of the problem, though: on the line where I get the output from qstat, I do:  $qstat = `qstat -u \* -ext -xml -s r -F`; That backslash in the command is getting escaped and not being sent to the operating system, so the command wasn't even outputting anything. *doh*