Well, it looks like even if any of
new() login() type() cwd() methods fail, you will continue with the process (having diligently saved messages to
@$error_minilog). So you should a) stop if any of the prerequsites fail and b) print out
@$error_minilog to see what happened.
However, since you get part of the file, the pre-reqs are probably working (though if
cwd() failed you may not be getting the file you think you're getting). The doc says a null return means the operation failed, which confirms the
get() fails.
Several possibilities suggest themselves to me:
- There is a network flakiness between you and the ftp server, which you might test manually using an ftp client or,
- whatever the reason for the problem, you have a better chance of seeing it with Debug => 1 or some other positive value in new(). or
- cwd() failed and a shorter file of the same name exists in the directory you are left in.
--Bob Niederman, http://bob-n.com
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.