fenonn has asked for the wisdom of the Perl Monks concerning the following question:
after converting the data into a 2d array I would extract only the last names into an array. I would do something like this.my @temp = map { [split /,/] } (split/\n/,$data);
my @lastNames; for my $i ( 0..$#temp) { push @lastName, $temp[$i][1]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting data from a 2D array
by arturo (Vicar) on Jun 08, 2001 at 02:17 UTC | |
|
(ar0n) Re: Extracting data from a 2D array
by ar0n (Priest) on Jun 08, 2001 at 11:58 UTC | |
|
Re: Extracting data from a 2D array
by bikeNomad (Priest) on Jun 08, 2001 at 03:25 UTC | |
|
Re: Extracting data from a 2D array
by tachyon (Chancellor) on Jun 08, 2001 at 02:34 UTC |