Perlfect Solutions
 

[Perlfect-search] possibility to ignore symbolic links?

Daniel Naber daniel.naber@t-online.de
Thu, 18 Jan 2001 19:17:32 +0100
On 2001-01-18 13:59, you wrote:

> is there a possibility to tell the indexer.pl script not to follow
> symbolic links?

No, but it should work if you add "and not -f" to these lines:

my @dirs  = grep {-d and not /^\.{1,2}$/} @contents; 
my @files = grep{-f and /^.+\.(.+)$/ and grep {/^\Q$1\E$/} @EXT} @contents;

Regards
 Daniel

-- 
Daniel Naber, Paul-Gerhardt-Str. 2, 33332 Guetersloh, Germany
Tel. 05241-59371, Mobil 0170-4819674