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

Re: Line-counts of perl programs/modules

by rchiav (Deacon)
on Apr 27, 2001 at 19:03 UTC ( #76131=note: print w/replies, xml ) Need Help??


in reply to Line-counts of perl programs/modules

Not perlish, but I just use vi. Go to the end of the file and do a ":number" to see what line you're or do a ":set number" to turn on line numbers... and ":set nonumber" turns it off.

Rich

  • Comment on Re: Line-counts of perl programs/modules

Replies are listed 'Best First'.
Re^2: Line-counts of perl programs/modules
by tadman (Prior) on Apr 27, 2001 at 19:53 UTC
    (Slightly OT)

    You can always use CTRL-G in vi compatible editors, as it usually shows what line you're on, plus how many lines are in the file. ':set number' sure is a useful trick, though.

    I'd have to agree with most, though, in that 'wc -l' is probably the best way to measure.
Re: Re: Line-counts of perl programs/modules
by snafu (Chaplain) on Apr 27, 2001 at 21:44 UTC
    easier: ctrl+g in vi[m] and :set nu (short for :set number)...truncated commands are nice.

    ----------
    - Jim

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2022-08-08 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?