Net::FTP mdtm problems

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Not sure if this is the correct group. Please tell me if I should post

I can't get ftp->mdtm to work I have tried two different platforms and
it fails on both.

On solaris 2.8 with perl 5.8.0

use strict;
use warnings;
use Net::FTP;

my $ftp = Net::FTP->new("server", Debug => 0);
$ftp->login("me",'password') or die "login $!\n";
my @files = $ftp->ls() or die "ls $!\n";
foreach (@files)
  my $mdtm = $ftp->mdtm($_) or die "mdtm $!\n";
  print "$_ $mdtm\n";

What am I doing wrong?




Dave Saville

NB Remove no-spam- for good email address

Site Timeline