nimdokk has asked for the wisdom of the Perl Monks concerning the following question:
Field1= a value,Field2= another value, Field3= yet another value
This would be one entry in the raw data file, each entry ends with a newline. It looks to me like an array of hashes. I know that I need to first split the line based on the comma. Then take and split each key=value pair and feed it into a hash. I don't really have any sample code to display at the moment. I'm mainly looking for suggestions on how to do the data manipulations of this kind.
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing data into an Array of Hashes
by jonadab (Parson) on Sep 18, 2003 at 13:04 UTC | |
by nimdokk (Vicar) on Sep 18, 2003 at 13:16 UTC | |
|
Re: Parsing data into an Array of Hashes
by Wonko the sane (Curate) on Sep 18, 2003 at 12:57 UTC | |
|
Re: Parsing data into an Array of Hashes
by Abigail-II (Bishop) on Sep 18, 2003 at 13:14 UTC | |
|
Re: Parsing data into an Array of Hashes
by thinker (Parson) on Sep 18, 2003 at 13:06 UTC | |
|
Re: Parsing data into an Array of Hashes
by kesterkester (Hermit) on Sep 18, 2003 at 13:10 UTC | |
|
Re: Parsing data into an Array of Hashes
by svsingh (Priest) on Sep 18, 2003 at 13:14 UTC |