Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by Fox (Pilgrim)
on Jul 05, 2010 at 10:53 UTC ( [id://848045]=note: print w/replies, xml ) Need Help??


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

wc will count tabs (\t) as 8 characters and newlines (\n) as 0 though,
don't know if it supposed to be like that, but it does:
$ hexdump test 0000000 0a09 0000002 $ wc -cm test 2 2 test $ wc -L test 8 test $

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-23 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found