in reply to Net::FTP usage
You haven't looked at what your target filenames actually are, even though the error message tells you that they are bad. Do:
for my $target (@array) { print "Trying to store [$target]\n"; };
Then you will see that each target filename still has a newline appended. See chomp on how to remove them, or consider just stripping all trailing whitespace:
for my $target (@array) { $target =~ s/\s+$//; print "Storing [$target]\n"; $ftp->put( $target ); };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::FTP usage
by kafkaf55 (Acolyte) on Aug 13, 2010 at 14:04 UTC | |
by Corion (Patriarch) on Aug 13, 2010 at 14:12 UTC | |
by kafkaf55 (Acolyte) on Aug 13, 2010 at 14:47 UTC | |
by kafkaf55 (Acolyte) on Aug 13, 2010 at 14:59 UTC | |
by Corion (Patriarch) on Aug 13, 2010 at 15:02 UTC | |
by jonadab (Parson) on Aug 13, 2010 at 18:48 UTC | |
by dasgar (Priest) on Aug 13, 2010 at 15:03 UTC |