Re: List of directories within a directory



On Wed, 30 Jan 2008 04:36:32 GMT, Jürgen Exner <jurgenex@xxxxxxxxxxx>
wrote:

Al Moodie <nospam@xxxxxxxxxx> wrote:
I have a directory with 200 sub directories in it. How do I create a
list of the sub directory names?

Didn't I just read exactly the same question from a name sake of yours in a
different NG? You may want to read up on the difference between
cross-posting (which is rarely appropriate) and multi-posting (which is
never justified).

Same answer as there: I would use File::Find and prune at a depth of 2.

jue

Sorry, it seemed to me that comp.lang.perl was inactive, hence to
second post here. Now that I know comp.lang.perl.misc it will not
happen again.

Al Moodie.
.



Relevant Pages