The $! will print out the error for you.open (UPLOAD, "+>$user_name" ) || print_error_page ("Can't open your s +ubmit directory.<br>$!"); flock(UPLOAD, $LOCK_EX) || print_error_page("Can't flock your submit d +irectory.<br>$!");
In reply to Re: Creating a file with Open
by c-era
in thread Creating a file with Open
by Newbie Ed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |