On Fri, May 27, 2005 at 10:31:40AM +0800, bingfeng zhao wrote:
> To parse a regular text file, I should report the line number of parsed file
> when error occured. I want to know whether perl provide a shortcut way or
> magic '$?' indicate this. I must counting myself if not.
>  
> Thanks in advance
>  
>  
yes, $.
see perldoc perlvar


-- 
     To see a world in a grain of sand
     and a hevean in a wild flower
     Hold infiniter in the palm of your hand
     and eternity in an hour

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to