Thread Net::FTP - ftp upload! Problem mit put? (20 answers)
Opened by KarlaCluft at 2012-12-26 16:14

GwenDragon
 2012-12-26 16:33
#164422 #164422
User since
2005-01-17
14533 Artikel
Admin1
[Homepage]
user image
CPAN:Net::FTP besagt bei put():
Quote
put ( LOCAL_FILE [, REMOTE_FILE ] )

Put a file on the remote server. LOCAL_FILE may be a name or a filehandle. If LOCAL_FILE is a filehandle then REMOTE_FILE must be specified. If REMOTE_FILE is not specified then the file will be stored in the current directory with the same leafname as LOCAL_FILE.

Returns REMOTE_FILE, or the generated remote filename if REMOTE_FILE is not given.

NOTE: If for some reason the transfer does not complete and an error is returned then the contents that had been transferred will not be remove automatically.


Mal so kurz überflogen, denke ich:

Na, Zeile 17! Wieso sind da bitte um test.txt keine Anführungszeichen? Das soll doch ein Dateiname sein und es ist auch kein Dateihandle. Oder?
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread Net::FTP - ftp upload! Problem mit put?