If your needs are simple, you may like
SDBM_File.
It's cross-platform, as you mentioned, but is limited
to retrieval via one key only. It uses the
tie
interface, so you wouldn't need to deal with the I/O
guts. Just read and write hash keys.
If your needs are more complex, some other ideas:
- The FreezeThaw Module (keep your data in perl data structures, and freeze/thaw them in a form suitable for file i/o)
- Storable - similar to FreezeThaw, perhaps faster, file i/o built-in to the module.
- DBD::CSV Use SQL against CSV (comma separated value) files