|Keep It Simple, Stupid|
Re: use SDBM_File like a databaseby hiseldl (Priest)
|on Dec 03, 2003 at 21:20 UTC||Need Help??|
If you can use Storable you can try the following:
this uses the value of the key 'REQ' as the primary key, and then freezes the hash so it can be stored in the SDBM_File. The select_all sub uses thaw to deserialize the hash into a hash ref containing the 'row' of values.