Gossamer Forum
Home : General : Perl Programming :

a simple question

Quote Reply
a simple question
what is the perl command to calculate the number of lines in "@something" , and print out the number in the file???
Quote Reply
Re: a simple question In reply to
 
$num = $#something;
print $num;

adam

[This message has been edited by dahamsta (edited June 07, 1999).]