Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Bareword "SEEK_END" not allowed while "strict subs" in use (explicit)

by tye (Cardinal)
on May 09, 2014 at 00:56 UTC ( #1085526=note: print w/ replies, xml ) Need Help??


in reply to Bareword "SEEK_END" not allowed while "strict subs" in use

Instead of being relatively coy about what you are importing:

use Fcntl qw(:flock);

Just be explicit, and the problem goes away:

use Fcntl qw< LOCK_EX SEEK_END >;

(And your code becomes clearer.)

- tye        


Comment on Re: Bareword "SEEK_END" not allowed while "strict subs" in use (explicit)
Select or Download Code
Re^2: Bareword "SEEK_END" not allowed while "strict subs" in use (explicit)
by thanos1983 (Monk) on May 09, 2014 at 14:15 UTC

    To: tye,

    Damn I forgot this part, completely. Thanks for pointing out.

    Can you help me also unserstand a bit the truncate() part?

    I have some questions and I do not know if I am correct or wrong, since is the first time that I am applying that. I have written a short exaplanation on my initial question at the end.

    Again thank you for your time and effort

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-08-29 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (277 votes), past polls