VGR has asked for the wisdom of the Perl Monks concerning the following question:
OUTPUT#!/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, keepro +ot => 1); print Dumper($struct);
Can u figure out what im doing wrong here? Here are the CPAN shell details:$ ./ex1.pl could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.10/XM +L/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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: could not find ParserDetails.ini even when im not using XML::SAX!!!!!!!!!
by Corion (Patriarch) on Feb 16, 2010 at 12:28 UTC | |
|
Re: could not find ParserDetails.ini even when im not using XML::SAX!!!!!!!!!
by marto (Cardinal) on Feb 16, 2010 at 12:31 UTC | |
by VGR (Acolyte) on Feb 16, 2010 at 14:39 UTC | |
by Anonymous Monk on Mar 21, 2012 at 11:40 UTC |