Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Validating XML

by vinian (Beadle)
on Dec 04, 2011 at 06:47 UTC ( [id://941606]=note: print w/replies, xml ) Need Help??


in reply to Validating XML

use XML::Simple; my $xml = new XML::Simple (KeyAttr=>[]); my $data; eval { $data = $xml->XMLin("cmd-out\/$hostname.xml"); }; if ( $@ ){ die "$@"; }

use eval catch error

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found