Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Using File::Find

by flexvault (Monsignor)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021031]
help
Chatterbox?
[marto]: red meat
[Discipulus]: out of world cup with player as..

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-11-22 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (319 votes). Check out past polls.

    Notices?