in reply to Re: Porting Commands to Windowsin thread Porting Commands to Windows
And for handling nesting, etc, you can use File::Path which is distributed with Perl core.