|
|
| XP is just a number | |
| PerlMonks |
Re: use SDBM_File like a databaseby hiseldl (Priest) |
| on Dec 03, 2003 at 21:20 UTC ( #312016=note: print w/ replies, xml ) | 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. HTH! --
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||