in reply to Re: Re: Struggles with Put in Net::FTP
in thread Struggles with Put in Net::FTP
use File::Spec; my $file_path=File::Spec->catfile('C:','Path','To','File.exe'); print "$file_path\n";
This will print:
C:\Path\To\File.exe
The advantage is, the module will put in the directory seperators for you, as appropriate for the OS. Also, you don't have to remember to escape the '\' character in a Windows path (basically making things cleaner). Also, it looks like you've got debug turned on, what kind of messages is it Net::FTP giving you?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Struggles with Put in Net::FTP
by mchiles (Initiate) on May 26, 2004 at 15:43 UTC |