Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Handling the POSTing of a file to a CGI script

by nickcave25 (Acolyte)
on Feb 18, 2000 at 22:03 UTC ( [id://3693]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://3693]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-29 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found