Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Flat File Database

by kschwab (Vicar)
on Jan 31, 2001 at 04:11 UTC ( [id://55403]=note: print w/replies, xml ) Need Help??


in reply to Flat File Database

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://55403]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found