Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Using File::Find

by flexvault (Prior)
on Feb 28, 2013 at 09:45 UTC ( #1021031=note: print w/ replies, xml ) Need Help??


in reply to Using File::Find

Dr Manhattan,

What's wrong with using 'glob'?

perl -E '%h=glob("*hp.txt");say join("\n",%h);'
you probably want to use a 'foreach' with 'keys' and maybe 'sort' to do something with the hash!

But that's an easy way to work with your current directory.

Good Luck...Ed

"Well done is better than well said." - Benjamin Franklin


Comment on Re: Using File::Find
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2015-07-28 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls