Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    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
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found