husani has asked for the wisdom of the Perl Monks concerning the following question:
An array exists for each line, and then an array exists for all of these arrays, via the following code:husani|10|20 bill|1|3 john|5|2
i need to be able to do the following: - search for a specific value, e.g., "bill"open(IN, "<$mailer_data_location"); my @foo = map { [(split(/\|/, $_))] } <IN>; close(IN);
ive spent a couple of hours searching this site and doing stuff, but it's still not working. please advise? :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: searching array of arrays
by bikeNomad (Priest) on Aug 02, 2001 at 10:16 UTC | |
|
Maybe use hash of arrays? Re: searching array of arrays
by andye (Curate) on Aug 02, 2001 at 15:12 UTC | |
|
Re: searching array of arrays
by runrig (Abbot) on Aug 02, 2001 at 10:39 UTC | |
|
Re: searching array of arrays
by mattr (Curate) on Aug 02, 2001 at 15:27 UTC | |
|
Re: searching array of arrays
by greywolf (Priest) on Aug 02, 2001 at 20:03 UTC |