in reply to FTP pattern matching and email notify

I think that instead of "mdtm", you'll want to use "ls" and then parse the output, for instance like so:

my @files = $ftp->ls(); foreach my $file(@files) { $ftp->get($file) or die "get failed", $ftp->message; }


Hope that helps...