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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Bareword "SEEK_END" not allowed while "strict subs" in use (explicit)
by thanos1983 (Parson) on May 09, 2014 at 14:15 UTC |
In Section
Seekers of Perl Wisdom