in reply to flock(), dodgy return?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: flock(), dodgy return?
by danstuken (Novice) on Aug 01, 2007 at 14:03 UTC | |
by ikegami (Patriarch) on Aug 01, 2007 at 14:09 UTC | |
by danstuken (Novice) on Aug 01, 2007 at 14:39 UTC | |
by danstuken (Novice) on Aug 01, 2007 at 14:19 UTC |