Abhisek has asked for the wisdom of the Perl Monks concerning the following question:
%seen = (); @uniq = (); foreach $item (@proc_name1) { unless ($seen{$item}) { $seen{$item} = 1; push (@uniq, $item); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: to select unique characters
by mickeyn (Priest) on Feb 13, 2008 at 07:26 UTC | |
|
Re: to select unique characters
by jwkrahn (Abbot) on Feb 13, 2008 at 08:03 UTC | |
|
Re: to select unique characters
by johngg (Canon) on Feb 13, 2008 at 10:42 UTC | |
|
Re: to select unique characters
by kyle (Abbot) on Feb 13, 2008 at 17:53 UTC |