use the File::Find module and its methods. An example of usage may be found at this URL.
http://www.perl.com/pub/a/2004/10/14/file_editing.html
You can modify the last example to delete recursively.
alfred,
Kamalraj Singh Madhan, Noida wrote:
Hi All,
Kindly let me know if this possible, deleting some selected files from a
directory through a perl script. This selection would be based on the
filename existing in a particular text file, if it exists then delete from
directory otherwise not since I do not want to delete all of the files in
this directory.
Cheers Kamal
--
Perl - "... making the easy jobs easy,
without making the hard jobs impossible."
'The Camel', 3ed
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>