Net::FTP mdtm problems

From: Dave Saville (dave_at_no-spam-deezee.org)
Date: 12/14/04


Date: Tue, 14 Dec 2004 22:00:53 GMT

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

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?

TIA

--
Regards
Dave Saville
NB Remove no-spam- for good email address


Relevant Pages

  • Re: writing on a line
    ... >> Is this the correct group to ask this? ... >> back and type on top of the line, the underlining disappears as I type. ... >> thing in WordPerfect. ... >> TIA, bb ...
    (microsoft.public.word.application.errors)
  • writing on a line
    ... Is this the correct group to ask this? ... lines drawn for things that change from month to month. ... thing in WordPerfect. ... TIA, bb ...
    (microsoft.public.word.application.errors)