There is File::Path to do just that :)
In reply to Re: Dumb recursive mkdir question... by Corion in thread Dumb recursive mkdir question... by pileofrogs