RE: Getting a line number from a file.

2002-09-26 Thread Timothy Johnson
Check out the documentation on the $. variable. It does what you want. -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 6:18 AM To: [EMAIL PROTECTED] Subject: Getting a line number from a file. Is there a way to, as a file is read to print

RE: Getting a line number from a file.

2002-09-26 Thread Nikola Janceski
see perldoc perlvar $. # has the current line number of the last FILEHANDLE opened. -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 9:18 AM To: [EMAIL PROTECTED] Subject: Getting a line number from a file. Is there a way to, as a