use Tie::File; tie( my @count, 'Tie::File', 'counter_data.dat' )->flock; $count[ 0 ]++; untie @count; [download]
In reply to Re: File I/O by jwkrahn in thread File I/O by Anonymous Monk