my ($max) = map $_->[0], reduce { $a->[1] > $b->[1] ? $a : $b } map [ $_, complex_calculation($_) ], LIST;
Update: Added missing parens around LHS of assignment
In reply to Re: List::Util max with block
by ikegami
in thread List::Util max with block
by dlarochelle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |