CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [StarkRavingCalm] Compare unchanged files in two arrays: Edit Log



FishMonger
Veteran / Moderator

Mar 2, 2013, 7:07 AM


Views: 3303
Re: [StarkRavingCalm] Compare unchanged files in two arrays

Sorry, that was my fault for only looking at the first part of the problem. The stat function is not needed.


Code
foreach my $file ($ftp->ls('-la')) { 
my ($size, $filename) = (split ' ', $file)[4,-1];
next if $filename =~ /^\./;
$files{$filename} = $size;
}



(This post was edited by FishMonger on Mar 2, 2013, 7:09 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Mar 2, 2013, 7:09 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives