in reply to Shell scripts and perl

As already mentioned, mkdir is what you want, but if one of those intermediate directories doesn't exist, and you'd like to create the whole path in one go, you can use File::Path.