Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Perl List files in directory (find/rule)

by bigj (Monk)
on Apr 22, 2014 at 11:32 UTC ( [id://1083146]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl List files in directory (find/rule)
in thread Perl List files in directory

O.K., you'd have to change '.' from my snippet to '/opt' or '/opt/tmp' or $dir to work it on other than current dir. Whether you use File::Find or File::Find::Rule is more a matter of taste. The maintainer of the module describes it as a is a friendlier interface to File::Find :-).

Greetings,
Janek Schleicher

Replies are listed 'Best First'.
Re^4: Perl List files in directory (find/rule)
by Anonymous Monk on Apr 22, 2014 at 13:13 UTC

    O.K., you'd have to change ...

    But where is the @files? :)

    Whether you use File::Find or File::Find::Rule is more a matter of taste.

    :) Hmm, @files? There is nothing like @files in File::Find docs ... OTOH File::Find::Rules shows a @files

    Its more than a matter of taste, File::Find::Rules is much much more memorable ... and friendly to noobs

    File::Find::Rules is like cake (sweet), where File::Find is like raw flour

Log In?
Username:
Password:

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

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

    No recent polls found