Click here to get back home

To find a quick way to list all files in the directory(and subdirectory)

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
To find a quick way to list all files in the directory(and subdirectory) lofenee 04-21-2008
Posted by lofenee on April 21, 2008, 3:46 am
Please log in for more thread options
Is there any function or module that can be used to list the content of a
directory recursively? Like `ls -R`, but it doesn't work everywhere.



Posted by Ben Bullock on April 21, 2008, 3:48 am
Please log in for more thread options
> Is there any function or module that can be used to list the content of a
> directory recursively? Like `ls -R`, but it doesn't work everywhere.

File::Find ?

Posted by lofenee on April 21, 2008, 3:51 am
Please log in for more thread options
??????:fd72e77d-340e-482a-aedc-e2c2cd0ece53@x19g2000prg.googlegroups.com...
>> Is there any function or module that can be used to list the content of a
>> directory recursively? Like `ls -R`, but it doesn't work everywhere.
>
> File::Find ?

That's it!

Thank you~



Posted by Ben Bullock on April 22, 2008, 1:57 am
Please log in for more thread options

> Thank you~

You might also find the following article, which contains some
examples, useful:

http://www.usenix.org/publications/login/2007-04/pdfs/blank-edelman.pdf

Similar ThreadsPosted
Including executable files in a subdirectory May 9, 2007, 11:01 pm
How to find all files in a directory with a specific mtime July 27, 2006, 6:39 am
Slurp large files into an array, first is quick, rest are slow December 28, 2005, 10:20 am
Recursively making a copy of a subdirectory.. September 12, 2005, 5:12 am
List of directories within a directory January 29, 2008, 9:00 pm
Finding directory in file list. December 26, 2006, 12:36 pm
How to parse directory structure from FTP LIST August 8, 2007, 2:08 pm
Simple file list in directory to array August 7, 2006, 2:01 am
File::Find doesn't go down thru directory December 13, 2007, 5:27 pm
Find number of sub directories within a directory May 11, 2005, 8:39 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap