|
|
| XP is just a number | |
| PerlMonks |
Re^3: Finding the max()/min() (reduce)by demerphq (Chancellor) |
| on Nov 11, 2004 at 10:56 UTC ( #406983=note: print w/ replies, xml ) | Need Help?? |
|
A moderate annoyance of List::Util::m(in|ax) is that they dont operate on tied values or situations where there is some form of indirection involved (like finding the key whose value in a hash is the lowest). Then List::Util::reduce() is your friend:
Working out max is left as an exercise :-)
--- demerphq
In Section
Meditations
|
|
||||||||||||||||||||