Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Never lock $0 inside of a BEGIN block

by particle (Vicar)
on May 21, 2003 at 19:46 UTC ( #259852=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ## ensure only one instance is running
    INIT { flock DATA => LOCK_EX | LOCK_NB or exit 1 }
    ...
    ## ...script...
    
    __DATA__
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://259852]
help
Chatterbox?
[Your Mother]: I would probably use Path::Tiny instead for it's slurp and such.
[Your Mother]: s/it's/its/
[Lady_Aleena]: Your Mother, how would that work? I'm having a hard time understanding the pod.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2017-05-23 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?