in reply to Simple/Quick question about opening creating a file using perl
If you need to actually make the directory first then look into mkdir.
And you didn't even know bears could type.