Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to extract the best match from matrix

by choroba (Cardinal)
on Mar 11, 2017 at 23:39 UTC ( [id://1184300]=note: print w/replies, xml ) Need Help??


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,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1184300]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found