Karger78 has asked for the wisdom of the Perl Monks concerning the following question:
foreach my $currentremotefilelist (@remoteFilelist) { foreach my $currentlocalfilelist (@return2) { #myfile.txt =~ myfile.txt_date my $currentremotefilelistsize = -s $currentremotefilel +ist; my $currentlocalfilelistsize = -s $logSite.$currentloc +alfilelist; $currentlocalfilelist = $logSite.$currentlocalfilelist +; if (($currentremotefilelist =~ /^$currentlocalfilelist +/i) && ($currentremotefilelistsize == $currentlocalfilelistsize)) { print "$currentremotefilelist and $currentlocalfil +elist also $currentlocalfilelistsize and $currentlocalfilelistsize Th +ey are Equal and will not be copied\n\n"; delete $return2[$arrayCounter]; $arrayCounter++; }else{print "$currentremotefilelist and $currentlocalf +ilelist also $currentlocalfilelistsize and $currentlocalfilelistsize +are not EQUAL!!\n";} } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array question
by Corion (Patriarch) on Nov 20, 2009 at 15:51 UTC | |
by Karger78 (Beadle) on Nov 20, 2009 at 16:08 UTC | |
by Corion (Patriarch) on Nov 20, 2009 at 16:14 UTC | |
|
Re: Array question
by AnomalousMonk (Archbishop) on Nov 20, 2009 at 17:53 UTC | |
|
Re: Array question
by gmargo (Hermit) on Nov 20, 2009 at 16:05 UTC | |
by AnomalousMonk (Archbishop) on Nov 20, 2009 at 18:24 UTC | |
by Karger78 (Beadle) on Nov 20, 2009 at 17:27 UTC | |
|
Re: Array question
by keszler (Priest) on Nov 20, 2009 at 15:44 UTC |