On Tue, Dec 20, 2005 at 03:17:27PM +0200, Niko Tyni wrote:
 
> Using fcntl() locks from Perl seems a bit tricky, since I'll have to
> pack() the lock argument together myself. I need some advice here.
OK, I found this trick in Mail::Box::Locker::Posix (in libmail-box-perl):
fcntl($file, F_SETLK, pack('s @256', F_WRLCK))
I assume the 256 means "so many zero bytes that it's certainly enough".
That's good enough for me too.
Sorry for the noise.
-- 
Niko