in reply to Removing Duplicate Array Elements!!!
use strict; my @a= (1,2,3,4,5,6,6,5,4,3,2,1); my %help; map { $help{$_}=1} @a; @a = keys %help; print @a;
----------------------------------- --the good, the bad and the physi-- -----------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Removing Duplicate Array Elements!!!
by tachyon (Chancellor) on Sep 27, 2001 at 17:33 UTC | |
by gbarr (Monk) on Sep 27, 2001 at 19:45 UTC | |
by tachyon (Chancellor) on Sep 27, 2001 at 20:36 UTC | |
by littlemonk (Sexton) on Feb 03, 2011 at 10:22 UTC |