in reply to Re: Persistent data structures -- why so complicated?
in thread Persistent data structures -- why so complicated?
Thanks! I think I got freaked out by the Perl Cookbook's lengthy example as to how to use file locking with Storable, but now that I've looked at the outstanding documentation for the module I see there's even a lock_store function (and lock_nstore for a more portable though slightly slower solution) that apparently would replace those details (and lock_retrieve). Sometimes the Cookbook (2003) tells me more than I need to know, but Time Marches On and I forget that the state of the art is different than when the second edition of the Cookbook was published 18 years ago. It's still the book I typically reach for first.
Would a comma-separated data format work in my example? Each student "record" has a key that holds multiple values (the student's hobbies), so I'm thinking there isn't a key-to-scalar-value relationship that's required for a CSV format.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Persistent data structures -- why so complicated?
by Tux (Canon) on Mar 12, 2021 at 08:34 UTC |