Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: what's this loo code? (*slurp*)

by John M. Dlugosz (Monsignor)
on Feb 05, 2003 at 03:52 UTC ( #232723=note: print w/ replies, xml ) Need Help??


in reply to Re: what's this loo code? (*slurp*)
in thread what's this loo code?

I guess the comments throw off my expectations, too. Since when does "wc" stand for "number of lines in a file"? The dictionary says it's a British toilet (a.k.a. "the loo") and it could be an acronym for word count, so I was trying to figure out how that was counting words.


Comment on Re: Re: what's this loo code? (*slurp*)
Re: Re: Re: what's this loo code? (*slurp*)
by pfaut (Priest) on Feb 05, 2003 at 04:11 UTC

    The wc utility counts words, lines, and characters in a file. wc -l tells wc to only display the number of lines.

    --- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2015-07-06 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls