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
In reply to Re: Append new files only.
by jwkrahn
in thread Append new files only.
by c4jjm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |