Displaying line numbers

Khachaturov Vassilii Vassilii.Khachaturov at comverse.com
Thu May 1 14:09:19 PDT 2003


> 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...


More information about the freebsd-cvsweb mailing list