in reply to How to extract the best match from matrix

Can you describe what the function is supposed to do?

Using strict is good, but declaring sub nearest inside of a for loop with the variable $find used in the subroutine while declared in the outer scope nearly spurns all its benefits.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,