good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: rmtree deletes everything inside the folder but doesn't deletes the root folder him selfby Anonymous Monk |
on Oct 15, 2011 at 00:12 UTC ( [id://931603]=note: print w/replies, xml ) | Need Help?? |
You need to select the "no_chdir" option so it doesn't change to the directory you're acting on:
find({ wanted => \&process, no_chdir => 1 }, '.');
In Section
Seekers of Perl Wisdom
|
|