Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: (jeffa) Re: Approximate Matching Key

by baku (Scribe)
on Apr 07, 2001 at 00:36 UTC ( #70595=note: print w/replies, xml ) Need Help??


in reply to (jeffa) Re: Approximate Matching Key
in thread Approximate Matching Key

Minor typo...

foreach (@keys) { $low = $_ if $_ <= $try; last if $_ >= $try; }

The = was missing in the $low line, so it would miss exact matches. It should still be present on the last line as well, despite my first instinct :-), because we can guarantee to have found a match.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://70595]
help
Chatterbox?
[ambrus]: Today I accidentally cut my hand while carrying a computer. On the display part of the motherboard that sticks out at the back of the chasis and has ports, there's this thin metal sheet with holes cut for the ports, to guide plugs into the sockets.
[ambrus]: This sheet has sharp needle-like parts, 0.004 long and less than 0.001 wide, that can get bent to point outwards, and one of these cut into my palm when I lifted the box.
[ambrus]: So now when I choose what motherboard to buy for my new home computer, I have one more specific property to guide me. Useful, because there's so many different boards to choose from.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-01-16 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.