Thread perl code um text files unix2dos konvertieren (37 answers)
Opened by cc at 2004-06-20 04:16

steffenw
 2004-06-21 02:12
#83611 #83611
User since
2003-08-15
692 Artikel
BenutzerIn
[Homepage] [default_avatar]
Ich denke mal so:
Code: (dl )
1
2
3
4
5
6
7
8
9
my $ftp = Net::FTP->new ($server, Timeout => 9000, Debug => 3);
$ftp or die "$server: cannot connect: $@";
$ftp->login ($user,$passwd) or die "$_: Could not login: " . $ftp->message;
# Put file (Parameter kann Filename oder Handle sein)
open FILE, '<', $file or die "open $file $!";
binmode FILE, 'encoding(cp850)' or die $!;
$ftp->put (\*FILE) or die "$server: cannot put $file: " . $ftp->message;
close FILE;
$ftp->quit;
\n\n

<!--EDIT|steffenw|1087769630-->
$SIG{USER} = sub {love 'Perl' or die};

View full thread perl code um text files unix2dos konvertieren