mexnix has asked for the wisdom of the Perl Monks concerning the following question:
That can all be handled later. My question deals with the data part of the program. I'm pretty sure that I want to put the data in a text file (I don't know THAT many women!), read the text file, and store it in the program as a hash of a hash using peoples nicknames (helps to keep it unique) as the keys . i.e.:
%addys = (
reallyhotchick => {
phone=>'555.555.5555',
name=>'Jane Shmoe',
cell=>'555.555.5555',
nick=>'reallyhotchick'}...)
What would be the best way to go about this? (field delimitation, how to get the data into the variables, etc) Is this a stupid way to go about this? I've tried a few things, but I always screw them up somehow. This is really a learning project for me. I will of course post the code upon finishing, but I don't expect to be life changing. If you think there's a better way (leaving out DB's to keep it simple) I open to suggestions. Thanks for your time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: writing an address book program
by andreychek (Parson) on Jun 07, 2001 at 00:48 UTC | |
by mexnix (Pilgrim) on Jun 07, 2001 at 00:54 UTC | |
by andreychek (Parson) on Jun 07, 2001 at 01:30 UTC | |
by kevin_i_orourke (Friar) on Jun 07, 2001 at 12:55 UTC | |
by andreychek (Parson) on Jun 07, 2001 at 21:56 UTC | |
|
Re: writing an address book program
by damian1301 (Curate) on Jun 07, 2001 at 01:09 UTC | |
|
Re: writing an address book program
by TGI (Parson) on Jun 07, 2001 at 01:09 UTC | |
|
Re: writing an address book program
by stephen (Priest) on Jun 07, 2001 at 00:33 UTC | |
|
Re: writing an address book program
by toma (Vicar) on Jun 08, 2001 at 10:12 UTC |