Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Golf: Length of longest line in a file

by moritz (Cardinal)
on Jul 04, 2010 at 16:06 UTC ( [id://847990]=note: print w/replies, xml ) Need Help??


in reply to Golf: Length of longest line in a file

I kinda like how Perl 6 code with few spaces comes in golfing distance, without the need for any ugly tricks:

So that's 24 chars without the quotes, and no fancy command line options used .

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: Golf: Length of longest line in a file
by ambrus (Abbot) on Jul 05, 2010 at 12:49 UTC
Re^2: Golf: Length of longest line in a file
by PrakashK (Pilgrim) on Jul 07, 2010 at 18:45 UTC

    One less character :)

    # 1234567901234567890123 perl6 -e 'say 1+lines».chars.max'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-23 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found