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

  • Comment on •Re: (it's dumb) Re: DON'T USE THIS CODE

Replies are listed 'Best First'.
Re: •Re: (it's dumb) Re: DON'T USE THIS CODE
by PodMaster (Abbot) on Sep 16, 2002 at 14:23 UTC
    Well thank you for helping. You've certainly solved my dilemma.

    Ok, so what do you think of File::FlockDir? (i just ran accross it)

    ** The Third rule of perl club is a statement of fact: pod is sexy.