in reply to Re^9: Restrict file search within current filessystem using wanted subroutine
in thread Restrict file search within current filessystem using wanted subroutine
As suggested, it is good to use an exact match to exclude specific file.
return if $File::Find::name eq '/var/log/test.out';
But now if I want to exclude more than one file, can I use an OR condition to the above line. Else for every exclusion I have to write a new exclusion as below:return if $File::Find::name eq '/var/log/test.out'; return if $File::Find::name eq '/var/log/new.out';
Regards, Madparu
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Restrict file search within current filessystem using wanted subroutine
by haukex (Archbishop) on May 18, 2016 at 19:37 UTC |