in reply to Creating a file with Open
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>$!");
|
|---|