in reply to Handling the POSTing of a file to a CGI script

open (LOGHANDLE, ">>outputfile.txt")|| &ErrorMessage; flock (LOGHANDLE, 2); print LOGHANDLE "$theDataYouWantToOuputToTheFile\n"; flock (LOGHANDLE, 8); close (LOGHANDLE);
That is the old way to do it.... The Perl5 way has you
use Fcntl qw(:flock); #Imports LOCK_EX, LOCK_SH, LOCK_NB
Can somebody show this guy how to do it the Perl 5 way? I'm not really up on it yet.

Replies are listed 'Best First'.
RE: Re: Handling the POSTing of a file to a CGI script
by yiango (Novice) on Feb 18, 2000 at 23:31 UTC
    http://www.cgi101.com/class/ch17/upload.txt example