
japhy
Enthusiast
Apr 17, 2000, 6:27 AM
Post #2 of 2
(219 views)
|
From Perl FAQ 4, How can I extract just the unique elements of an array?: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> undef %saw; @out = grep(!$saw{$_}++, @in); </pre><HR></BLOCKQUOTE>
|