Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Key Word In Context system (golf, anyone)?

by danger (Priest)
on Mar 07, 2001 at 10:26 UTC ( #62675=note: print w/ replies, xml ) Need Help??

in reply to Key Word In Context system (golf, anyone)?

I believe this'll do it in 60 bytes:

print sort map{sub{map{push@_,shift;"@_\n"}@_}->(split)}<>

update: Yup, I can't count ... 58 characters showing (59 bytes if we include a terminal newline in our file).

Comment on Re: Key Word In Context system (golf, anyone)?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2015-07-02 13:01 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (37 votes), past polls