if (grep { -f $_ and $_ eq $FilePath } @DirsArray){} else{ #### unless ( grep { -f $_ and $_ eq $FilePath } @DirsArray ) { #### printf("\n" . $FilePath . "\n"); #### print "\n" . $FilePath . "\n"; #### while ( $line = ) { push(@outLines, $line); #to be sent to appended large file } #### push @outLines, ; #to be sent to appended large file