Well, the first thing I note is that the constants LOCK_EX and LOCK_NB are never defined or imported. Try including use Fcntl ':flock'; to get them (see the Fcntl module docs).
It's worth mentioning that perl would have pointed this out to you had you used strict and warnings. I know it seems like we harp on it, but use strict; use warnings; should really be part of anything you write.
In reply to Re: flock(), dodgy return?
by radiantmatrix
in thread flock(), dodgy return?
by danstuken
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |