Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Put "ls" in array

by xiaoyafeng (Chaplain)
on Apr 27, 2012 at 15:13 UTC ( #967664=note: print w/ replies, xml ) Need Help??


in reply to Put "ls" in array

for a beginner, I recommend File::Find::Rule for this usage. below is some examples grasp from its synopsis:

# find all the subdirectories of a given directory my @subdirs = File::Find::Rule->directory->in( $directory ); # find all the .pm files in @INC my @files = File::Find::Rule->file() ->name( '*.pm' ) ->in( @INC );




I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction


Comment on Re: Put "ls" in array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2015-07-28 21:06 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 (259 votes), past polls