Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

(boo) Re: Closest-value-in-list Golf!

by boo_radley (Parson)
on May 29, 2001 at 17:58 UTC ( #83928=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $h{shift@s}
    
  2. or download this
    $h{$s[0]}
    
  3. or download this
    sub e {sub n{abs($s-$b)};$s=pop;while($b=pop){if(&n<$d||!$d){$l=$b;$d=
    +&n}}$l}
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2015-09-03 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (94 votes), past polls