Re: Using hashes in a format

2009-01-18 Thread John W. Krahn
Adam Jimerson wrote: Yea I read that dbmopen was superseded by the "tie" function but I couldn't figure out the permissions for it: tie(%HIST, 'NDBM_File', '/usr/lib/news/history', 1, 0); perldoc DB_File [ snip ] Default Parameters It is possible to omit some or all of the final

Re: Using hashes in a format

2009-01-18 Thread Adam Jimerson
"John W. Krahn" wrote: > Adam Jimerson wrote: >> I am working on a program that will act as a contact manager of sorts, >> it uses two hashes to store everything (although the second one is >> commented >> out because I am not ready to work with it). I am using the format >> function to display

Re: Using hashes in a format

2009-01-18 Thread Adam Jimerson
(Randal L. Schwartz) wrote: >> "Adam" == Adam Jimerson writes: > > Adam> my %phone_numbers = (); > ... > Adam> $phone_numbers{$_} #needs to print the keys of the hash for the > name, and Adam> values for the phone number so it will be like this "Some > Name 555-555-" Adam> . > > Back in

Re: Using hashes in a format

2009-01-18 Thread Randal L. Schwartz
> "Adam" == Adam Jimerson writes: Adam> my %phone_numbers = (); ... Adam> $phone_numbers{$_} #needs to print the keys of the hash for the name, and Adam> values for the phone number so it will be like this "Some Name 555-555-" Adam> . Back in the day, formats couldn't access lexical (m

Re: Using hashes in a format

2009-01-18 Thread John W. Krahn
Adam Jimerson wrote: I am working on a program that will act as a contact manager of sorts, it uses two hashes to store everything (although the second one is commented out because I am not ready to work with it). I am using the format function to display everything but I don't know how to ge