Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Finding files in one directory

by bart (Canon)
on Dec 18, 2012 at 11:58 UTC ( #1009347=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @files;
    find sub { push @files, $File::Find::name if -f and /\.txt$/ }, '.';
    # now you have an array of file names:
    foreach(@files) { ... }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-10-26 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls