Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Answer: Net::FTP->dir(

( #323276=categorized answer: print w/ replies, xml ) Need Help??

Q&A > HTTP and FTP clients > Net::FTP->dir("abc def"); embedded spaces in filename fails. contributed by fedelman

Hi! It's simple.

You need run the next commands:
...
...
...
$filename =~ s/\s/\\ /g;
$ftp->dir($filename);

This is the correct way to escape the whitespaces.
That's all!

Comment on Answer: Net::FTP->dir(
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-08-27 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls