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-- -----------------------------------
In reply to Re: error stating flock requires more args
by physi
in thread error stating flock requires more args
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |