Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^10: Restrict file search within current filessystem using wanted subroutineby Anonymous Monk |
on May 18, 2016 at 18:32 UTC ( [id://1163364]=note: print w/replies, xml ) | Need Help?? |
Hi Hauke,
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
In Section
Seekers of Perl Wisdom
|
|