Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by eyepopslikeamosquito (Chancellor)
on Jul 04, 2010 at 07:03 UTC ( #847958=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"
    perl -lpe "\$Z[y///c]}{$_=@Z"
    perl -nE "\$Z[y///c]}{say$#Z"    # update: alternative 22
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (16)
As of 2016-09-28 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (533 votes). Check out past polls.