Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: XML::simple instalation

by pvaldes (Chaplain)
on Oct 03, 2011 at 09:54 UTC ( #929302=note: print w/replies, xml ) Need Help??

in reply to XML::simple instalation

You can obtain for yourself the answer, try and run

use warnings; use xml::simple;

If is not installed still, perl probably will show something like this:

Can't locate xml/

Replies are listed 'Best First'.
Re^2: XML::simple instalation
by Corion (Pope) on Oct 03, 2011 at 10:34 UTC

    Also see Re: use Strict: a rigorous way to break my command line variables?.

    If XML::Simple is installed, use xml::simple; on Windows will not raise an error related to xml::simple or XML::Simple:

    >perl -Mxml::simple -e "XMLin()" Undefined subroutine &main::XMLin called at -e line 1. >perl -MXML::Simple -e "XMLin()" Could not find -e.xml in .\ at -e line 1

    Because file systems on Windows are generally case insensitive, you can load modules under various names. As package names under Perl still are case sensitive, their ->import() method will not be called, which is confusing.

    In my opinion, it would have been more helpful to directly tell the OP that there is no module xml::simple.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929302]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2018-01-16 16:32 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (183 votes). Check out past polls.