http://www.perlmonks.org?node_id=5502


in reply to How do I create a new directory with a cgi script on my webserver?

You use the mkdir function to make a new directory.

If it's not working for you, you probably have one of several common problems: You aren't using the correct path, because your CGI program is not running in the place that you think it is, or perhaps your program doesn't havethe permissions you expect it to.

For a list of problems of this type and how to diagnose or correct them, see this page