Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How do I find directories within directories using : parse_dir(`ls -l`)by toolic (Bishop) |
on Aug 15, 2009 at 18:14 UTC ( [id://788917]=note: print w/replies, xml ) | Need Help?? |
If you could use some other module, File::Slurp provides a read_dir function which can be used as follows.
read_dir returns a list of directory contents. grep -d selects only directories (filtering out files).
To include the . and .. special directories, add the keep_dot_dot option:
In Section
Seekers of Perl Wisdom
|
|