in reply to error stating flock requires more args
The reason is, that FH is not known to lock, cause it's only visible inside your add() sub.lock(*FH); sub lock { my $fh = shift; flock($fh,LOCK_EX); }
----------------------------------- --the good, the bad and the physi-- -----------------------------------
|
|---|