My suggestion, is that you use the CPAN module MLDBM. What this module alows you to do is store complex data structures within a DBM without you having to deal with all of the complexities of serialization and unserialization. Where I in your situation I would do something like, each entry into the addressbook is a hash:
and then, index the hash that is the tied MLDBM DB file by whatever it is you wanted, name, phone, address, whatever. Being that you could access it like a hash, your data manipulation problems would be greatly minimized, and being that this is not a speed critical piece of code, the overhead in the MLDBM package would probably not kill you...my $entry = { NAME => "eduardo arino", PHONE => "(555) 555-1212", ADDRESS => "666 Dante Circle, Murfreesboro, TN", EMAIL => "ed@NO_SMAP.home.com" };
then again, there might be some other way of doign it... it's just that whenever i hear people talk of using flat files, I get this feeling that it's going to end up coming back to haunt them... I know the few times i have, it did...
In reply to Re: addy book entries..
by eduardo
in thread addy book entries..
by Crawlings
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |