This is my first post, and after looking through various threads I still can't find a solution to below. A little help would be GREATLY appreciated.
Below script works swell, but now i've also been asked to include file size and modified date. I've tried a few i found on various threads, but to no avail.
Here is the original WORKING script without above requests.
Thanks, GZPM
#!/usr/bin/perl
#use strict;
use Net::FTP;
$username = "abc";
$password = "123";
$home = "/my_folder";
@directory = ("balkema","abvil","abc","abdo","abd");
$ftp = Net::FTP->new("myftpsite.com");
$ftp->login($username, $password);
foreach my $a (@directory) {
$ftp->cwd($a);
@list = $ftp->ls("*.xml");
foreach my $b (@list) {
print "$a - $b\n"
}
$ftp->cwd($home);
}
Below script works swell, but now i've also been asked to include file size and modified date. I've tried a few i found on various threads, but to no avail.
Here is the original WORKING script without above requests.
Thanks, GZPM
#!/usr/bin/perl
#use strict;
use Net::FTP;
$username = "abc";
$password = "123";
$home = "/my_folder";
@directory = ("balkema","abvil","abc","abdo","abd");
$ftp = Net::FTP->new("myftpsite.com");
$ftp->login($username, $password);
foreach my $a (@directory) {
$ftp->cwd($a);
@list = $ftp->ls("*.xml");
foreach my $b (@list) {
print "$a - $b\n"
}
$ftp->cwd($home);
}