Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: How do I remove the duplicates from the array?by hdb (Monsignor) |
on Sep 26, 2013 at 14:18 UTC ( [id://1055844]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|