Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: File::Find problems

by YuckFoo (Abbot)
on Sep 11, 2004 at 20:46 UTC ( [id://390314]=note: print w/replies, xml ) Need Help??


in reply to File::Find problems

Consider using File::Find::Rule. You specify the rules or conditions to meet. One rule is 'maxdepth' that limits how far down the tree to go:

YuckFind

#!/usr/bin/perl use strict; use File::Find::Rule; my @files = File::Find::Rule->file()->maxdepth(1)->in('/start/here') +; print "@files";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found