Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Count the number of lines in a file

by jmcnamara (Monsignor)
on Aug 15, 2002 at 15:36 UTC ( [id://190432]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        perl -lpe '}{*_=*.}{' file
  2. or download this
        $ perl -MO=Deparse  -lpe '' file
    
        LINE: while (defined($_ = <ARGV>)) {
    ...
            print $_;
        }
    
  3. or download this
        $ perl -MO=Deparse  -lpe '}{*_=*.}{' file
    
        LINE: while (defined($_ = <ARGV>)) {
    ...
        continue {
            die "-p destination: $!\n" unless print $_;
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-04-24 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found