in reply to Array question

Does $currentremotefilelist begin with whatever is in $logSite?

Is @remoteFilelist a list of filenames only, or is there path info as well? Same question for @return2.

If both @remoteFilelist and @return2 are lists of files, why compare each filename from the first with every filename in the 2nd?