Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by larryk (Friar)
on May 29, 2001 at 18:37 UTC ( #83946=note: print w/replies, xml ) Need Help??


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

sub g {$n=pop;$h{abs$_-$n}=$_ for@_;$h{(sort{$a<=>$b}keys%h)[0]}}

57 if you take out the ( ) on the abs

"Argument is futile - you will be ignorralated!"

Replies are listed 'Best First'.
Re: Re: Re: (boo) Re: Closest-value-in-list Golf!
by suaveant (Parson) on May 29, 2001 at 18:45 UTC
    oooooohh... ++
                    - Ant

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83946]
help
Chatterbox?
[choroba]: (and OSX didn't exist yet)
[choroba]: Also, I'd try starting the App with the US layout and switch to the dead keys layout later
[Tux]: no, it was not .xinput related, but that did ring a bell. digging in my $ENV I found the cause: XMODIFIERS=@im=xim

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-09-25 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (290 votes). Check out past polls.

    Notices?