in reply to Formating Text Files

Assuming that $Perf in the data file in your example, you can just read @read in scalar context to find the number of elements.

$lines_in_file = @read;

Update: Forgot about counting the header row (thanks bronto). Read below.


_______________
D a m n D i r t y A p e
Home Node | Email

Replies are listed 'Best First'.
Re: Re: Formating Text Files
by bronto (Priest) on Jun 20, 2002 at 15:45 UTC
    ...minus one (the heading row). So, actually, he could use $#read directly, or --$lines_in_file ;