Perl-Sensitive Sunglasses | |
PerlMonks |
Re: How can I get the four highest valued letters in an array?by thanos1983 (Parson) |
on Jun 01, 2017 at 13:17 UTC ( [id://1191845]=note: print w/replies, xml ) | Need Help?? |
Hello supriyoch_2008, Another possible way, using Slices. I would have the same approach as 1nickt did already. Initially create a hash from two arrays and then simply sort the values in descending order.
Hope this helps.
Seeking for Perl wisdom...on the process of learning...not there...yet!
In Section
Seekers of Perl Wisdom
|
|