1 package IndexData::Utils::PersistentCounter;
12 my($file, $create) = @_;
15 return undef if !$create;
16 # ### There is a bit of a race condition here, but it's not
17 # something that's going to crop up in real life.
18 my $fh = new IO::File(">$file") || return undef;
20 $fh->close() or return undef;