Welcome to the Monastery | |
PerlMonks |
Re: Regex and perl directories questionby mkmcconn (Chaplain) |
on Nov 20, 2001 at 04:31 UTC ( [id://126431]=note: print w/replies, xml ) | Need Help?? |
Something like this, I think:
Maybe, although short, grep is not the best way to do this. (# my @dirs = grep (-d, readdir D); # would work just as well, of course). mkmcconn
In Section
Seekers of Perl Wisdom
|
|