Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: File::Find redux: how to limit hits?

by Aristotle (Chancellor)
on Jun 04, 2002 at 01:34 UTC ( [id://171377]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub prep {
        my $depth = $File::Find::dir =~ tr[/][];
        return if $depth > $max_depth;
        return grep -d "$File::Find::dir/$_", @_ if $depth < $min_depth;
        @_;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://171377]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-24 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found