On Wed, 2 Mar 2005, Suneel Kumar B wrote:
>
> May be my earlier mail is missed somewhere.. I wish you all a nice day..
>
> While matching a string with each line of a file, if the string is
> matched with any of those lines, How can we get the line number of the
> line where it is matched..? Is there any built-in function for fetching
> the line number..? If so, can you let me know..
perdoc perlvar
$. Current line number for the last filehandle accessed.
Owen
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>