Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2023-12-09 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (38 votes). Check out past polls.

    Notices?