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";} } }
In reply to Array question by Karger78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |