Help for this page

Select Code to Download


  1. or download this
    P1 check if "the.lock" exists -> no
    P2 check if "the.lock" exists -> no
    ...
    P2 create "the.lock" -> ok
    P1 do "more code"
    P2 do "more code"
    
  2. or download this
    use Fcntl qw(:flock);
    
    ...
    print "Done.\n";
    
    close(LOCK);