Rex Arul wrote:
>
> Andrea,
>
> Even if you do have commified strings, it should still work. Right?
>
> ###
> use strict;
> my(@array, @unique, %seen);
> $array[0] = ["apples","oranges","plums", "Arul, Rex", "Holstein, Andrea",
> "Clinton,Bill"];
> $array[1] = ["
t;Andrea Holstein" <[EMAIL PROTECTED]>
Sent: Friday, November 09, 2001 11:03 PM
Subject: Re: Duplicates in 2D Array
> Andrea,
>
> Even if you do have commified strings, it should still work. Right?
>
> ###
> use strict;
> my(@array, @u
Andrea,
Even if you do have commified strings, it should still work. Right?
###
use strict;
my(@array, @unique, %seen);
$array[0] = ["apples","oranges","plums", "Arul, Rex", "Holstein, Andrea",
"Clinton,Bill"];
$array[1] = ["asparagus", "corn","peas"];
$array[2] =
Clinton wrote:
>
> How would I eliminate the duplicate in this 2D array?
> my @array;
> $array[0] = ["apples","oranges","plums"];
> $array[1] = ["asparagus", "corn","peas"];
> $array[2] = ["ham","chicken","lamb"];
> $array[3] = ["apples","oranges","plums"];
>
A quick and dirty solution is:
my %