It's as if the use was never executed, the use failed but the exception was caught, or if it's not loading the module it should load.

What does
perl -we "use XML::Simple; print $INC{'XML/Simple.pm'}"
give you? A warning or a file name?

If it returns the a file name, can you give us the first 20-50 lines of that file? What follows is the top lines from the newest version, but even as far back 1.06 is very similar

>perl -we "use XML::Simple; print $INC{'XML/Simple.pm'}" r:/Utils/perl/site/lib/XML/Simple.pm >type "r:\Utils\perl\site\lib\XML\Simple.pm" # $Id: Simple.pm,v 1.23 2005/01/29 04:16:10 grantm Exp $ package XML::Simple; =head1 NAME XML::Simple - Easy API to maintain XML (esp config files) =head1 SYNOPSIS use XML::Simple; my $ref = XMLin([<xml file or string>] [, <options>]); my $xml = XMLout($hashref [, <options>]); Or the object oriented way: require XML::Simple; my $xs = new XML::Simple(options); my $ref = $xs->XMLin([<xml file or string>] [, <options>]); my $xml = $xs->XMLout($hashref [, <options>]); (or see L<"SAX SUPPORT"> for 'the SAX way'). To catch common errors: use XML::Simple qw(:strict); (see L<"STRICT MODE"> for more details). =cut # See after __END__ for more POD documentation # Load essentials here, other modules loaded on demand later use strict; use Carp; require Exporter; ###################################################################### +######## # Define some constants # use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $PREFERRED_PARSER); @ISA = qw(Exporter); @EXPORT = qw(XMLin XMLout); @EXPORT_OK = qw(xml_in xml_out); $VERSION = '2.14'; $PREFERRED_PARSER = undef;

In reply to Re^3: Using the XMLin() method in XML::Simple not working by ikegami
in thread Using the XMLin() method in XML::Simple not working by heigold1

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.