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