I have never managed to fetch anything with Net::FTP (I am a 3 day old CPAN newbie). I'm trying to install via the cpan command ("sudo cpan" on MacOsX Panther). Here is the the first error message:

CPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://ftp.perl.org/authors/01mailrc.txt.gz Couldn't cwd authors at /usr/local/lib/perl5/5.8.7/CPAN.pm line 2260
Here are the lines around 2260 in CPAN.pm
======code starts============= unless ( $ftp->cwd($dir) ){ warn "Couldn't cwd $dir"; return; } =======code ends==============
So, what I did was to insert an extra line into CPAN.pm, namely:
print `pwd`;

The output was '/Users/dbae/.cpan', so obviously 'authors' was not to be found. The correct directory to cwd to is sources/authors

So I've tracked down the error quite a bit, but I have no idea how to fix the error.

Any advice?

Another question: where should this question have been posted? I searched for Net::FTP on cpanforum, and got about 7 different groups, not one of which was recognizable by me.

Thanks a lot
David

Edited by Chady -- fixed formatting.


In reply to Net::FTP is NEVER successful by dbae

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.