in reply to Will these functions for use with Storable properly lock my file?
Storable supports advisory locking out of the box:
# Advisory locking use Storable qw(lock_store lock_nstore lock_retrieve) lock_store \%table, 'file'; lock_nstore \%table, 'file'; $hashref = lock_retrieve('file');
This is from the Storable POD. Could you use these tools to handle locking for you?
Dave
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Will these functions for use with Storable properly lock my file?
by nysus (Parson) on Aug 03, 2021 at 21:33 UTC |