Anyone know how to retrieve a file that has spaces in the filename using Net::FTP? I've been using Net::FTP for a few months now with no problems but when I tried to use it with a filename containing spaces (e.g. 'Rev 1792.2.zip') it barfed. I've tried putting the filename in quotes which works when I use ftp myself but Net::FTP didn't like it (same error). Here's the code snippet I'm using to get the files. The $ftp->get() works fine unless there's a space in the remote filename then it says:
Bad remote filename 'Rev 1792.2.zip'
at ./foo.pl line 400
$ftp->get($fname,$tempfname) || die("couldn't get remote file $fname")
+;
Thanks, --RT