in reply to Directory creation failing

Are you checking the return code? If the call is failing, then $! should give some error text to identify the cause.

The likelyhood is that when your script is run via the webserver, it is running under a user account (nobody or ISUR_your_machine or similar) that is specifically disabled from creating files outside of cgi-bin.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!