Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Golf: Length of longest line in a file

by ikegami (Pope)
on Jul 04, 2010 at 18:39 UTC ( #848000=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Golf: Length of longest line in a file
in thread Golf: Length of longest line in a file

Three (two) less for cmd.

perl -nE"$s^=$_}{say length$s" # Switch quotes for bash perl -nE "\$Z[y///c]}{say$#Z" # Switch quotes for bash perl -nE"\$Z[y///c]}{say$#Z" # Switch quotes for bash perl -nE\$Z[y///c]}{say$#Z # cmd specific 1234567890123456789012345


Comment on Re^3: Golf: Length of longest line in a file
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://848000]
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: (11)
As of 2015-05-27 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (526 votes), past polls