Re: Duplicates in 2D Array

2001-11-10 Thread Andrea Holstein
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] = ["

Re: Duplicates in 2D Array

2001-11-09 Thread Clinton
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

Re: Duplicates in 2D Array

2001-11-09 Thread Rex Arul
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] =

Re: Duplicates in 2D Array

2001-11-09 Thread Andrea Holstein
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 %