Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2003 17:03:53 -0400 
From:      Khachaturov Vassilii <Vassilii.Khachaturov@comverse.com>
To:        "'Ville Skytta'" <scop@freebsd.org>
Cc:        freebsd-cvsweb@freebsd.org
Subject:   RE: Displaying line numbers
Message-ID:  <6B1DF6EEBA51D31182F200902740436803B24F5B@mail-in.comverse.com>

next in thread | raw e-mail | index | archive | help
> By the way, is there a function/ perl module for getting the number of
> lines in a file?  `wc -l` of course works...  I think that would be
> needed in order to get the line numbers properly left padded 
> with spaces
> like in
> 
>         1
>     [...]
>       100
>     [...]

There's the mjd-s Tie::File module you might want to look at...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6B1DF6EEBA51D31182F200902740436803B24F5B>