in reply to Re^2: How do I remove the duplicates from the array?
in thread How do I remove the duplicates from the array?
I do not understand the line $sort[-1]>$sort[0] ? $sort[-1] : undef. What if the values are 7, 8, 8? How will it discard the whole thing? I know the OPs spec is rather cryptic but my understanding was, that the values are to be blanked out if the max occurs more than once.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How do I remove the duplicates from the array?
by LanX (Saint) on Sep 26, 2013 at 14:45 UTC | |
by hdb (Monsignor) on Sep 26, 2013 at 14:48 UTC | |
by LanX (Saint) on Sep 26, 2013 at 14:53 UTC |
In Section
Seekers of Perl Wisdom