Newbie Ed has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a CGI program in Perl. I want to create a file
'on the fly' using the users name so I can write stuff to it. Here's my code:
open (UPLOAD, "+>$user_name" ) || print_error_page
("Can't open your submit directory.");
flock(UPLOAD, $LOCK_EX) || print_error_page("Can't flock your submit directory.");
My problem is that the open command isn't creating a new file for me. Is this a Unix problem? Thanks in advance for any help.