in reply to List::Util max with block

Can't you use map?
$max_el = max( map { complex_calculation($_) } @list);

Replies are listed 'Best First'.
Re^2: List::Util max with block
by ikegami (Patriarch) on Nov 06, 2009 at 19:40 UTC
    The OP wants the value that produced that maximum calculation result, not the maximum calculation result itself.