in reply to addy book entries..
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: addy book entries..
by Aighearach (Initiate) on Jul 16, 2000 at 03:51 UTC | |
by eduardo (Curate) on Jul 17, 2000 at 01:19 UTC |