Thanks everyone for the tips. After trying to put the filename in both single and double quotes and escaping the spaces with \, I still kept getting the same error -- even though these solutions worked when I manually logged into the FTP server...so, I turned to the source. After finding the source for the FTP.pm that was installed on my system I found this:
sub get
{
...
croak("Bad remote filename '$remote'\n")
if $remote =~ /[\s\r\n]/s;
So, it looks like FTP->get was throwing out the filename before it ever requested it from the server. I checked on CPAN and sure enough, I had a really old libnet and Net::FTP installed. Newer versions do allow spaces in the filename.
perl -MCPAN -e 'install Bundle::libnet'
cured all my woes. Thanks again for the suggestions.
--RT
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.