We don't bite newbies here... much | |
PerlMonks |
Re: flock(), dodgy return?by radiantmatrix (Parson) |
on Aug 01, 2007 at 13:46 UTC ( [id://630050]=note: print w/replies, xml ) | Need Help?? |
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.
<–radiant.matrix–>
Ramblings and references The Code that can be seen is not the true Code I haven't found a problem yet that can't be solved by a well-placed trebuchet
In Section
Seekers of Perl Wisdom
|
|