$index = (sort{$$b[1]-$$a[1]}map{[$i++,$#$_]}@aoa)[0]->[0];That's nice, very nice indeed, blakem ... but some people seem to have problems understanding it, so allow me to take this apart a bit:
-- Hofmator
In reply to Re4: Getting last valid index from a particular list in a @LoL
by Hofmator
in thread Getting last valid index from a particular list in a @LoL
by willick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |