in reply to Handling the POSTing of a file to a CGI script
That is the old way to do it.... The Perl5 way has youopen (LOGHANDLE, ">>outputfile.txt")|| &ErrorMessage; flock (LOGHANDLE, 2); print LOGHANDLE "$theDataYouWantToOuputToTheFile\n"; flock (LOGHANDLE, 8); close (LOGHANDLE);
Can somebody show this guy how to do it the Perl 5 way? I'm not really up on it yet.use Fcntl qw(:flock); #Imports LOCK_EX, LOCK_SH, LOCK_NB
|
---|
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 |