in reply to Append new files only.
if (grep { -f $_ and $_ eq $FilePath } @DirsArray){} else{
Is usually written as:
unless ( grep { -f $_ and $_ eq $FilePath } @DirsArray ) {
printf("\n" . $FilePath . "\n");
Is better written as:
print "\n" . $FilePath . "\n";
while ( $line = <FILE> ) { push(@outLines, $line); #to be sent to appended large file }
No need for a loop there, you could just do:
push @outLines, <FILE>; #to be sent to appended large file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Append new files only.
by c4jjm (Initiate) on Nov 10, 2011 at 18:03 UTC |