Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Using File::Find

by daxim (Chaplain)
on Feb 28, 2013 at 08:57 UTC ( #1021022=note: print w/replies, xml ) Need Help??


in reply to Using File::Find

File::Find has the worst interface of all finding modules. I recommend Path::Iterator::Rule instead.
use Path::Iterator::Rule qw(); use Path::Tiny qw(path); my %files = map { $_ => path($_)->basename } Path::Iterator::Rule->new ->name(qr/hp[.]txt$/) # regex of file name ->all('.'); # starting in the current directory

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021022]
help
Chatterbox?
[Corion]: marto: Yeah, I can imagine that
[choroba]: create a ticket if the number of tickets reaches a limit
[choroba]: how deep meta could it go?
[marto]: this sounds like a sub section for Sane Dots

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2017-01-24 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (203 votes). Check out past polls.