in reply to Reading from ls-lrt (was: Reading)
# snippet of my code using Net::FTP @files = reverse (map { (split (/\s+/))[8]; } `ls -lrt F*`); foreach $filename (@files[0..4]) { COPY_FILES; } sub COPY_FILES { $ftp = Net::FTP->new("$remserv") || die "Could not connect : $!\n"; $ftp->login("$user","$pass"); $ftp->cwd("$dir"); $ftp->put("$filename"); $ftp->quit; }
|
|---|