Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: perl script to print just directory names

by Kenosis (Priest)
on Dec 06, 2012 at 23:01 UTC ( #1007670=note: print w/replies, xml ) Need Help??


in reply to perl script to print just directory names

Find::File::Rule can assist with this. It is recursive:

use strict; use warnings; use File::Find::Rule; my $base_dir = 'C:\Input'; my @dirs = File::Find::Rule->directory->in( $base_dir ); print $_, "\n" for @dirs;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007670]
help
Chatterbox?
[marto]: who?
[Eily]: "hime"? The perl princess?
[Discipulus]: oops !
[marto]: who are we talking about?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-06-23 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (539 votes). Check out past polls.