
FishMonger
Veteran
Feb 12, 2013, 6:18 AM
Views: 199
|
|
Re: [Raju.b] delete specific sub directories recurcively
|
|
|
Use the File::Find (or File::Find::Rule) module to traverse the directory tree deleting the directories as needed. You'll want to set no_chdir to true so that you can delete the current dir if needed. http://search.cpan.org/~dom/perl-5.12.5/lib/File/Find.pm You'll also want to use the File::Path module to handle the deletion process. http://search.cpan.org/~dland/File-Path-2.09/Path.pm
(This post was edited by FishMonger on Feb 12, 2013, 6:20 AM)
|