
FishMonger
Veteran
Mar 2, 2013, 7:07 AM
Views: 559
|
|
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.
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)
|