Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Net::FTP->dir(

by fedelman (Novice)
on Jan 22, 2004 at 18:39 UTC ( [id://323276]=note: print w/replies, xml ) Need Help??


in reply to Net::FTP->dir("abc def"); embedded spaces in filename fails.

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://323276]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found