Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Preventing multiple instances

by eyepopslikeamosquito (Bishop)
on Dec 17, 2020 at 08:32 UTC ( #11125328=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    # Release the lock simply by closing the file handle.
    close $fhlock or die "Error: close '$somelockfile': $!";
    warn "program ends\n";
    
  2. or download this
    join flock($other,@chickens) if split /from others/;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2021-05-12 03:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (124 votes). Check out past polls.

    Notices?