in reply to XML parsing
use XML::Simple; .. my @outputInfo = qx[$cmd]; # Discard that pesky first line, without needing to know # what the line ending chars are shift @outputInfo; # Join array to make a single string, with line endings # being turned into line endings (but not necessarily # exactly the same line endings as the command may have # used, depending on your OS, and/or the internals of the # command) my $ref = XMLin(join("\n", @outputInfo));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML parsing
by raju_400 (Novice) on Sep 22, 2008 at 05:43 UTC | |
by ikegami (Patriarch) on Sep 22, 2008 at 06:03 UTC | |
by raju_400 (Novice) on Sep 22, 2008 at 07:19 UTC | |
by ikegami (Patriarch) on Sep 22, 2008 at 07:32 UTC |