Just out of interest, why use Net::FTP? I've always found that something along these lines works a treat. All you need is a text file read from the command line stating which files you require (although you can change this obviously if you arent keen)
#!/usr/bin/perl list = $ARGV[0]; $ftp = "/usr/bin/ftp"; $ftptmp="filename.txt"; $ftphost = "<ftp host>"; $ftpdir = "<ftp directory>"; open(LIST, "$list") || die "ERROR: Unable to open $list FILE: $!\n"; while(<LIST>) { @fields = split; $file = $fields[0]; # get file from ftp site print "Retrieving file from FTP site ...\n"; open(FTP, "|$ftp -n $ftphost > $ftptmp"); print FTP "user anonymous "; print FTP "password <email address>\n"; print FTP "cd $ftpdir\n"; print FTP "get $file\n"; print FTP "bye"; }
Not sure if this is quite what you are after, but it might be useful generally speaking.
p.s. Could you please do something about the font .. I think you have everything wrapped around code tags at the moment making your post rather difficult to read. lol

In reply to Re: Net::FTP is NEVER successful by Angharad
in thread 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.