From owner-freebsd-cvsweb@FreeBSD.ORG Thu May 1 14:09:19 2003 Return-Path: Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F12F437B407; Thu, 1 May 2003 14:09:18 -0700 (PDT) Received: from us-wkf-interscan1.comverse.com (us-wkf-fwmain.comverse.com [63.64.185.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 941FF43F3F; Thu, 1 May 2003 14:09:17 -0700 (PDT) (envelope-from Vassilii.Khachaturov@comverse.com) Received: from mail-in.comverse.com (localhost.localdomain [127.0.0.1]) h41K9tA24807; Thu, 1 May 2003 16:09:55 -0400 Received: by mail-in.comverse.com with Internet Mail Service (5.5.2653.19) id ; Thu, 1 May 2003 17:03:54 -0400 Message-ID: <6B1DF6EEBA51D31182F200902740436803B24F5B@mail-in.comverse.com> From: Khachaturov Vassilii To: "'Ville Skytta'" Date: Thu, 1 May 2003 17:03:53 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" cc: freebsd-cvsweb@freebsd.org Subject: RE: Displaying line numbers X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS Web maintenance mailing list [restricted posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 21:09:19 -0000 > 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...