How can I use 'flock' to prevent the database file from being called when it's being processed?my %h; my $data_db = "data_db"; tie (%h, 'DB_File', "$data_db") or die $!; if (not exists($h{$id})) { $h{$id} = 'some value'; } untie %h;
In reply to How to apply flock by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |