XP is just a number | |
PerlMonks |
Re: remove duplicate value in arrayby VSarkiss (Monsignor) |
on Jul 11, 2006 at 13:52 UTC ( [id://560460]=note: print w/replies, xml ) | Need Help?? |
Fletch and Nevtlathiel have it above. Just in case the code sample is too dense, here's a little "looser" version that does the same thing: So %seen is the hash that gets a key for each unique value in @content, and @unique is an array containing those (unique) keys.
In Section
Seekers of Perl Wisdom
|
|