in reply to Limit Find();
Update: Seems a bit harsh to downvote me for giving some code that answers the question...use File::Find; find(\&wanted, $ARGV[0]); my %dir = (); sub wanted { if ($dir{$File::Find::dir}++ < 10) { print $File::Find::name, "\n"; } }
gav^
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Limit Find();
by petral (Curate) on Jan 31, 2002 at 21:11 UTC |