Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

(RhetTbull) Re: Spaces in file names with Net::FTP

by RhetTbull (Curate)
on Dec 12, 2000 at 21:50 UTC ( [id://46282]=note: print w/replies, xml ) Need Help??


in reply to Spaces in file names with Net::FTP

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://46282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-26 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found