#!/usr/bin/perl use strict; use warnings; use Net::FTP; my $ftp = Net::FTP->new("host.de"); my $path = 'c:/temp'; die "Konnte keine Verbindung aufbauen $!" unless $ftp; $ftp->login("name", "passwort"); opendir(DIR, $path); my @inhalt = readdir(DIR); $ftp->put($path . '/' . $_) for @inhalt; $ftp->quit;