Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Need help with creating a filename only array

by George_Sherston (Vicar)
on Jul 27, 2002 at 09:54 UTC ( #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
Node Status?
node history
Node Type: note [id://185738]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2019-07-24 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (32 votes). Check out past polls.

    Notices?