#!/usr/bin/perl
use strict;
use warnings;
use XML::Simple;
use Data::Dumper ;
my $simple = XML::Simple->new();
my $struct = $simple->XMLin("./xml/exer1.xml", forcearray => 1, keeproot => 1);
print Dumper($struct);
####
$ ./ex1.pl
could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.10/XML/SAX
Document requires an element [Ln: 2, Col: 0]
####
administrator@varunraj ~/scripts
$ perl -MCPAN -e -shell
Ambiguous use of -shell resolved as -&shell() at -e line 1.
cpan shell -- CPAN exploration and modules installation (v1.9402)
Enter 'h' for help.
cpan[1]> install XML::Simple
CPAN: Storable loaded ok (v2.20)
Going to read '/home/administrator/.cpan/Metadata'
Database was generated on Tue, 16 Feb 2010 07:53:49 GMT
XML::Simple is up to date (2.18).
cpan[2]> install XML::SAX
XML::SAX is up to date (0.96).