Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Need help with creating a filename only array

by George_Sherston (Vicar)
on Jul 27, 2002 at 09:54 UTC ( [id://185738]=note: print w/replies, xml ) Need Help??


in reply to Need help with creating a filename only array

File::Find will repay a little effort in learning to use it, as it will let you do pretty much whatever you want along these lines. If I understood your question, I think this does the particular thing you want at present:
use File::Find; sub myprint {print "$_\n" unless -d($_)} # i.e. print anything that's not a directory find(\&myprint,'/your/directory');


§ George Sherston

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-23 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found