Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: file lock error

by dbs (Sexton)
on Apr 06, 2011 at 19:58 UTC ( #897870=note: print w/replies, xml ) Need Help??


in reply to Re: file lock error
in thread file lock error

tried those, but it gave me an error
Bareword "LOCK_SH" not allowed while "strict subs" in use at dlpar_mks +ysb-run.plx line 62. Bareword "LOCK_NB" not allowed while "strict subs" in use at dlpar_mks +ysb-run.plx line 62. Bareword "LOCK_SH" not allowed while "strict subs" in use at dlpar_mks +ysb-run.plx line 63. Bareword "LOCK_NB" not allowed while "strict subs" in use at dlpar_mks +ysb-run.plx line 63. dlpar_mksysb-run.plx had compilation errors.

Replies are listed 'Best First'.
Re^3: file lock error
by ikegami (Pope) on Apr 06, 2011 at 20:09 UTC

    From the documentation to which I linked,

    import them from the Fcntl module, either individually, or as a group using the ':flock' tag.

    Add

    use Fcntl qw( :flock );

    as in the example

Re^3: file lock error
by ikegami (Pope) on Apr 06, 2011 at 20:10 UTC
    DUP

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2021-06-12 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (53 votes). Check out past polls.

    Notices?