in reply to deleting windows subdirectories

Try DELTREE. (Though not Perl-related)

--
tune