Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Answer: Net::FTP->dir(

by fedelman (Novice)
on Jan 22, 2004 at 18:39 UTC ( #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. - Answer 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!

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-04-24 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (433 votes). Check out past polls.