if you want to use a built in function then use
^^^^^^^^ variable
$.
or its alternatives $NR, or $INPUT_LINE_NUMBER
Which implys that you are using the 'English' module which is a bad idea if speed is important.
By definition this says "the current input line number of the last file handle that was read."
my $linect=$.
You haven't read from FILEHANDLE yet so $. has the value undef.
while ( <FILEHANDLE>) { if ( $linect > 9 ) {
Unlike $. which changes for each line read, $linect does not change so will never be greater than 9.
do whatever ... }
}
John -- use Perl; program fulfillment
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>