The print is there for testing purposes. To make it work, you'll just need to uncomment the unlink.use strict; use File::Find; my $workspace = "c:/foo/bar"; find \&delFiles, $workspace; sub delFiles { if(-f) { # unlink $File::Find::name or die "Unable to delete file: $!"; print "$File::Find::name"; } }
In reply to Re: deleting windows subdirectories
by Steve_p
in thread deleting windows subdirectories
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |