Here's my code:
#!/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);
OUTPUT
$ ./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]
Can u figure out what im doing wrong here? Here are the CPAN shell details:
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).

In reply to could not find ParserDetails.ini even when im not using XML::SAX!!!!!!!!! by VGR

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.