in reply to Re: Unable to install Data::Dumper module
in thread Unable to install Data::Dumper module

It says that it is installed but whenever i try using it in a perl script, this is what i get:
administrator@varunraj ~/scripts $ perl ex1.pl Can't locate Data/Dupmer.pm in @INC (@INC contains: /usr/lib/perl5/5.1 +0/i686-cyg win /usr/lib/perl5/5.10 /usr/lib/perl5/site_perl/5.10/i686-cygwin /usr +/lib/perl5 /site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10/i686-cygwin /usr/lib/p +erl5/vendo r_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5 +.8 /usr/li b/perl5/vendor_perl/5.8 .) at ex1.pl line 5. BEGIN failed--compilation aborted at ex1.pl line 5.
It says it can't locate Dumper.pm
This is the code i wrote:
#!/usr/bin/perl #use strict; #use warnings; use XML::Simple; use Data::Dupmer; my $simple = XML::Simple->new(); my $struct = $simple->XMLin("./xml/exer1.xml", forcearray => 1, keepro +ot => 1); print Dumper($struct);

Replies are listed 'Best First'.
Re^3: Unable to install Data::Dumper module
by Corion (Patriarch) on Feb 16, 2010 at 10:44 UTC

    You're trying to use Data::Dupmer, but the module name is Data::Dumper.

      i just hate typos
      i ran it again and this is what i got!
      $ perl 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]
      Im not sure why it's looking at SAX

        XML::Simple relies on other XML parsers. It can use XML::Parser or one of many SAX parsers. XML::Simple is at its fastest when it uses XML::Parser, so you should install XML::Parser and set

        $XML::Simple::PREFERRED_PARSER = 'XML::Parser';
        to make sure XML::Simple will use it.