title: What CPAN module to use for nonblocking file locking with Perl
body: <p>I want to make sure only one process at a time runs.  So I want to make sure jobB doesn't run unless jobA is not running.  </p>
  
  <p>It would be great if it had some ability to retry the lock so I don't have to code that.  Something vaguely like this:</p>
  
  <pre><code>LockFileModule-&gt;lock(
      lockfile           =&gt; '/fabulous/pants',
      retries            =&gt; 12,
      timeout            =&gt; 25,
      timebetweenretries =&gt; 30,
  ) or die "the other job is still running";
  </code></pre>
  
  <p>Whats the best way to do this in Perl?  I'm hoping there is a good CPAN module for this.</p>