xorl has asked for the wisdom of the Perl Monks concerning the following question:
I only care about the 2nd field. I want all of the unique values. In other words I want to get 0, 1, and 2. In the script I have they will always be sorted by the 2nd field, so there should be no need to do a sort. Any suggestions? Thanks@array = ([a,0,b],[c,1,d],[d,1,e],[f,2,h];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I pull out unique values in a multidimentional array
by dragonchild (Archbishop) on Jun 28, 2001 at 23:15 UTC | |
|
Re: How do I pull out unique values in a multidimentional array
by dimmesdale (Friar) on Jun 28, 2001 at 23:53 UTC | |
|
Re: How do I pull out unique values in a multidimentional array
by repson (Chaplain) on Jun 29, 2001 at 11:31 UTC | |
|
Re: How do I pull out unique values in a multidimentional array
by dragonchild (Archbishop) on Jun 28, 2001 at 23:18 UTC |