I have strawberry perl only and I run my script it gives this error

C:\Documents and Settings\x0199665\Desktop\ke>first_time_userl.pl Can't locate Text/CSV.pm in @INC (you may need to install the Text::CS +V module) (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/ +lib C:/str awberry/perl/lib .) at C:\Documents and Settings\x0199665\Desktop\ke\f +irst_time_ userl.pl line 90. BEGIN failed--compilation aborted at C:\Documents and Settings\x019966 +5\Desktop\ ke\first_time_userl.pl line 90.

and my line 90 is use Text::CSV; so I did this cpan Text::CSV; it gave this error

C:\Documents and Settings\x0199665\My Documents>cpan Text::CSV CPAN: CPAN::SQLite loaded ok (v0.202) CPAN: LWP::UserAgent loaded ok (v6.05) CPAN: Time::HiRes loaded ok (v1.9725) Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to cpan.strawberryperl +.com:80 (B ad hostname)] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to www.cpan.org:80 (Ba +d hostname )] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to www.cpan.org:80 (Ba +d hostname )] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. As a last resort we now switch to the external ftp command 'C:\Windows +\system32\ ftp.exe' to get 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp2248'. Doing so often leads to problems that are hard to diagnose. If you're the victim of such problems, please consider unsetting the ftp config variable with o conf ftp "" o conf commit Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to cpan.strawberryperl +.com:80 (B ad hostname)] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to www.cpan.org:80 (Ba +d hostname )] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to www.cpan.org:80 (Ba +d hostname )] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. As a last resort we now switch to the external ftp command 'C:\Windows +\system32\ ftp.exe' to get 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp2248'. Doing so often leads to problems that are hard to diagnose. If you're the victim of such problems, please consider unsetting the ftp config variable with o conf ftp "" o conf commit CPAN: YAML::XS loaded ok (v0.41) Please check, if the URLs I found in your configuration file (http://cpan.strawberryperl.com/, http://www.cpan.org/, http://www.cpan.org/) are valid. The urllist can be edited. E.g. with +'o conf urllist push ftp://myurl/' Could not fetch authors/01mailrc.txt.gz


In reply to Re^2: installing text::csv cpan by shushant
in thread installing text::csv cpan by shushant

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.