Help for this page

Select Code to Download


  1. or download this
        use My::ThereCanBeOnlyOne '/tmp/myprogram.pid';
    
  2. or download this
       use My::ThereCanBeOnlyOne '/tmp/myprogram.pid',
                                 -hold  => 0,
                                 -stale => 1,
                                 -max   => 1;
    
  3. or download this
    package My::ThereCanBeOnlyOne;
    use strict;
    ...
    }
    
    1;