Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: How to perform recursion in any OS?by betterworld (Curate) |
on Dec 08, 2016 at 07:48 UTC ( [id://1177481]=note: print w/replies, xml ) | Need Help?? |
I prefer Path::Class for listing directories:
Also check out the docs (perldoc Path::Class::Dir) about the "recurse" function. In any case, there are many other reasons why you should never write code like `ls -a $path`. Have you thought about the possibility that $path includes the string "; rm -rf /"?
In Section
Seekers of Perl Wisdom
|
|