extracting records to an associative array
- From: gioindo@xxxxxxxxxxx
- Date: 13 Sep 2005 15:41:01 -0700
I have a text file exactly like this:
Name: John Doe
Address: 123 Main St
City: New York
State: NY
Zip: 10128
Name: Jane Doe
Address: 456 Main St
City: Syracuse
State: NY
Zip: 10022
Name: John Smith
Address: 789 Main St
City: Poughkeepsie
State: NY
Zip: 101010
Name: Bob Smith
Address: 987 Main St
City: Tarrytown
State: NY
Zip: 10000
Can someone help me get this into an associative array? I tried
Template::Extract but could not get it to work without stuffing some
garbage in between the records.
.
- Follow-Ups:
- Re: extracting records to an associative array
- From: Robert Gamble
- Re: extracting records to an associative array
- Prev by Date: Re: qx and awk for array
- Next by Date: Re: extracting records to an associative array
- Previous by thread: FAQ 8.23 How can I open a pipe both to and from a command?
- Next by thread: Re: extracting records to an associative array
- Index(es):
Relevant Pages
|