Perlfect Solutions

[Perlfect-search] need to exclude certain directory types

Daniel Naber
Fri, 3 Nov 2000 20:02:32 +0100
On 2000-11-03 18:21, you wrote:

> exclude directories with certain names at a "higher level" in the
> or

No, because you currently have to specify full pathes for the 
files/directories. However, you could change this line in

      next FILE if $file =~ m/^$regexp$/;

To this line:

      next FILE if $file =~ m/$regexp/; # ^ and $ are "missing"

Then you can put any regular expression in no_index.txt to describe the 
files that should be ignored.


Daniel Naber, Paul-Gerhardt-Str. 2, 33332 G�tersloh
Tel. 05241-59371, Mobil 0170-4819674