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

Hey guys, I want to install the XML::Simple and Data::Dumper modules from CPAN. i am relatively new to Perl and i have never used any custom module from CPAN. can some one please tell me how to go about this procedure. I use Perl 5.10.0 buitl for Cygwin-thread-multi-64int I run this on an windows xp box. ps: I checked for Data::Dumper module according to "toolic" and it does exists. i am checking out the tutorials now!

Thanks a ton!

Replies are listed 'Best First'.
Re: How to install a CPAN module
by marto (Cardinal) on Sep 28, 2009 at 14:53 UTC

    Which version of Perl are you running, and on which OS? See Installing Modules from the tutorials section of this site. From the command line type:

    cpan XML::Simple

    If you have any problems let us know

    Martin

Re: How to install a CPAN module
by toolic (Bishop) on Sep 28, 2009 at 14:55 UTC
Re: How to install a CPAN module
by Corion (Patriarch) on Sep 28, 2009 at 14:55 UTC
Re: How to install a CPAN module
by biohisham (Priest) on Sep 28, 2009 at 15:13 UTC
    You've not specified whether you're using Perl from *nix or Windows, the DATA::Dumper is a standard module, so it comes with Perl. Another thing to consider, sometimes you need to compile the module before installing it. The steps involved into getting a module generally go like download->unpack->build->install and then your module would become functional. The process becomes convoluted at times and at other times some of these steps can be unnecessary like the step of compiling or building the module.

    You need to make sure beforehand you've studied well enough the installation procedure and decided what approach you'd follow and what favorable alternatives you can take should unexpected patterns appear. Here're two links that can be useful for you as a start-up:

    1. Installing from CPAN
    2. Installing Perl modules for Windows and Unix


    Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.
Re: How to install a CPAN module
by rgiskard (Hermit) on Sep 28, 2009 at 14:53 UTC

    Mabye you can tell us a little more about your operating system and what version of perl you are using.

    While opening a CPAN shell is typically the first step prior to running "install <insert package here>"; how you get to a CPAN shell is different for Strawberry perl on windows, versus a (non-root) linux user at a command prompt, and then there's active state perl on windows which probably has a different way.

Re: How to install a CPAN module
by venkatesan_G02 (Sexton) on Sep 28, 2009 at 14:59 UTC