Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi, bit of a newbie question after a Friday afternoon down the pub.... unfortunately it's making my head hurt...
I'm parsing a load of data containing multiple entires for various keys. I've generated an array of the unique keys, and want to use this to trawl the data and populate an array associated with the unique keys (There are going to be duplicate entrries which I want to keep, so I want an array instead of a hash).
So I need something along the lines of. . .
foreach (@uniquekey) { if (/something/) { push(@($_),$_); } }
or am I missing something obvious here.. Regards Rich
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: arrays from arrays
by fruiture (Curate) on Mar 07, 2003 at 17:15 UTC | |
by Anonymous Monk on Mar 07, 2003 at 17:50 UTC |