in reply to perl dbm problem

Right now, your code overwrites the entire %BOOK hash each time. If you weren't using DB_File and your html library, and wanted to store several entries in %BOOK and then print them out, how would you do it? That doesn't change under DB_File, since it just stores the hash on disk.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.