Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by merlyn (Sage)
on Sep 16, 2002 at 13:51 UTC ( [id://198243]=note: print w/replies, xml ) Need Help??


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

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://198243]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found