Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-07-13 21:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls