On Mon, Jan 12, 2009 at 16:05, icarus <rsa...@gmail.com> wrote:
> I'm trying to all count files in a home dir and all subdirs *except* a
> subdir called 'backup'.

When you run into the condition where you don't want to recurse
further, set $File::Find::prune to 1 (e.g. $File::Find::prune = 1 if
$_ = "./backup";).

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to