DOS does have deltree, which will remove entrie directory trees, but i would suggest using Perl's builtin functions (unlink, mkdir), as someone (a cast of 1000's really) has worked toward poratbility already.
from the frivolous to the serious
Comment on Re: platform independent system commands