Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Safe way to open files

by danger (Priest)
on Jun 15, 2002 at 17:42 UTC ( #174854=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Fcntl qw(:DEFAULT :flock);
    # assume $flock_enabled set accordingly
    ...
        flock($fh, LOCK_EX) || die "Can't flock $fn: $!" if $flock_enabled
    +;
        return $fh;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2021-06-14 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (66 votes). Check out past polls.

    Notices?