in reply to flock with anonymous filehandle
toflock({$nick},LOCK_EX);
flock($nick,LOCK_EX);
The syntax you had there created a hashref with nothing in it.
You really should be checking the return value of flock, and open.
(was updated because I really should've checked what { 'whatever' } produced.)
|
|---|