Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: newbie writing a counter

by nardo (Friar)
on Aug 07, 2001 at 01:47 UTC ( [id://102630]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #opens counter data file
    open(COUNTERDAT,"./counter.dat");
    
    #locks file, and if can't, goes back to READCOUNTER to try again
    flock COUNTERDAT, 1 or next READCOUNTER;
    
  2. or download this
    #opens counter data file again
    open(COUNTERDAT,">./counter.dat");
    
    #locks file, and if can't, goes back to WRITECOUNTER
    flock COUNTERDAT, 2 or next WRITECOUNTER;
    
  3. or download this
    open(COUNTERDAT,"./counter.dat");
    flock COUNTERDAT, 1 or next READCOUNTER;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-03-28 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found