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

Hey monks

I am using TEXT::CSV cpan and am working on windows xp . so i was hoping anyone could help me on how to install this cpan . I am pretty new to perl so will appreciate your help

Replies are listed 'Best First'.
Re: installing cpan
by marto (Cardinal) on Jul 01, 2013 at 13:43 UTC

    Open a command prompt and type:

    cpan Text::CSV

    Note this is case sensitive. The cpan documentation has a lot of useful information regarding usage.

    Update: Also, a more accurate post title would be something like 'Installing Text::CSV using cpan'. See How do I compose an effective node title?.

      hey it is failing , saying no success downloading and the file path , giving up on it.

        Perhaps you're behind a proxy and need to provide your credentials. Without knowing exactly what's going on people can only make suggestions which may or may not work. How do I post a question effectively? has a lot to say on this topic. I suggest you post the output of this command, using the formatting described in the previous link.

Re: installing cpan
by Jim (Curate) on Jul 01, 2013 at 14:43 UTC

    Are you using ActivePerl from ActiveState? If so, then use PPM, not cpan, to install CPAN modules.

      Actually, you can install directly from CPAN with ActivePerl. By default, it will only be able to install modules that are pure Perl and don't need to be compiled. For 32-bit ActivePerl, you can use PPM to install MinGW and dmake from ActiveState's repository and the you can install modules from CPAN that need to be compiled.

      As a side note, I will concede that installing modules via PPM (especially from ActiveState's repository) usually has a lower risk of issues than installing directly from CPAN.

Re: installing cpan
by zork42 (Monk) on Jul 01, 2013 at 17:06 UTC
      I am sorry , actually I am very new to all this and have used it for the first time . I am using perl 5.16.3 , from padre . hope it clarifies whether it is ActivePerl from ActiveState.
        Padre runs everywhere :) Run this and report the output,
        #!/usr/bin/perl -- print "$] $^X\n"; print "INC: $_\n" for @INC; print "\n"; print "system $^X, '-V';\n"; system $^X, '-V'; print "\n\n\nsystem qw/ perl -V /;\n"; system qw/ perl -V /;
        No problem :)
        padre is actually an IDE, not a source of Perl.
        You might be running "DWIM Perl" (Perl - Download - Windows)
        Can you type "perl -v" (without the ""s) in a dos box and post the results here?
Re: installing cpan
by zork42 (Monk) on Jul 04, 2013 at 05:20 UTC