Wiggins d Anconia wrote:
You haven't shown us your 'use' statements, I suspect you didn't import
the LOCK_ constants,
perldoc -f flock
Adding:
use Fcntl ':flock'; # import LOCK_* constants
Should help.
I think you need to do:
use Fcntl qw(:DEFAULT :flock);
or else Perl will complain about O_RDW
> Variations on the following code snippet have run successfully before,
> but now the compiler halts with the complaint
> " Bareword "LOCK_EX" not allowed while "strict subs" in use at
> student_info_viewer.cgi line 47"
> Can someone help me see what I am overlooking?
>
You haven't shown us you
Variations on the following code snippet have run successfully before,
but now the compiler halts with the complaint
" Bareword "LOCK_EX" not allowed while "strict subs" in use at
student_info_viewer.cgi line 47"
Can someone help me see what I am overlooking?
# Declare the 'working' datahash, th