in reply to (it's dumb) Re: DON'T USE THIS CODE
in thread File::DumbLock

Look, your code breaks on every platform. It's dangerous. It will start to spread a bad meme to most of the other platforms, and we don't need that.

You have not contributed anything to the art. You have only muddied the water.

perlport says that flock works on Win2K. Hence, the solutions I wrote nearly seven years ago for Unix work fine on Win2K today. The only place this breaks down is on older win95 and win98 releases. For that, your solution offers nothing that works consistently, and even definitely fails because you are performing time-related operations in separate steps, and would be a step backwards for the community at large.

You have not solved a thing with your post. You have only harmed the community. Thus, I stepped in to try to mark this code as bad as quick as I could.

-- Randal L. Schwartz, Perl hacker