in reply to recursively scanning directories

Sadmachine uses a normal regexp to match filenames:
if($File::Find::name !~ m/\./)

This condition is redundant. Every file by definition has a name, so every file matches the regexp.

Update: Beatnik points out below that the regexp is not a redundancy, merely a mistake. It has the effect of not including all filenames with dots in them, e.g., myfile.txt and myscript.pl.

Replies are listed 'Best First'.
Re: Re: recursively scanning directories
by Beatnik (Parson) on Jun 19, 2001 at 14:01 UTC
    Actually that's his attempt to match directories (which isn't ofcourse correct). That match will ignore all filenames with a dot in it.

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.