VGR has asked for the wisdom of the Perl Monks concerning the following question:

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).

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

    You didn't do much research, did you?

    xml::sax could not find ParserDetails.ini in, which is quite similar to your node title even, returns as the two topmost hits:

    Maybe if you can tell us, without that many exclamation marks, what your environment is, we could advise you better. Maybe all you have to do is to just reinstall XML::SAX.

    Perl modules are often like bricks, one builds upon another. So it's not necessarily a surprise that even if you don't directly use one module that you will depend on other modules indirectly because one module builds its functionality upon other modules.

Re: could not find ParserDetails.ini even when im not using XML::SAX!!!!!!!!!
by marto (Cardinal) on Feb 16, 2010 at 12:31 UTC
      sorry about that...
      I'm new to this place. It's pretty confusing .... The messages didn't seem to be displaying after the 3rd RE as in RE^3. Guess i had to click the tab to see it.
      And yes i could have avoided the exclamation marks :)
      Like the previous post said, I created the parserdetails.ini file and then it started to work.
      Thanks for ur help man
      I am currently using cygwin and there seem to be errors popping up all the time.
        in cygwin adding SAX results in:
        2 [main] perl 5808 child_info_fork::abort: address space needed +by 'Glob.d ll' (0x1200000) is already occupied 2 [main] perl 4544 child_info_fork::abort: address space needed +by 'HiRes. dll' (0x880000) is already occupied
        looping