RE: Line number variable....

2004-05-07 Thread NYIMI Jose (BMB)
 -Original Message-
 From: Gabor Urban [mailto:[EMAIL PROTECTED] 
 Sent: Friday, May 07, 2004 12:57 PM
 To: [EMAIL PROTECTED]
 Subject: Line number variable
 
 
 Hi,
 
 I was going through the manuals some times, but could not 
 find it. Is there a variable containing the actual 
 source-line number during execution? 
 

Yes, the $.

José.



 DISCLAIMER 

This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer.

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


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




Re: Line number variable....

2004-05-07 Thread Paul Johnson
On Fri, May 07, 2004 at 01:01:01PM +0200, NYIMI Jose (BMB) wrote:

  -Original Message-
  From: Gabor Urban [mailto:[EMAIL PROTECTED] 
  
  I was going through the manuals some times, but could not 
  find it. Is there a variable containing the actual 
  source-line number during execution? 
 
 Yes, the $.

Sounds more like __LINE__ to me, though this is a token rather than a
variable.

perldoc perldata

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

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




RE: Line number variable....

2004-05-07 Thread NYIMI Jose (BMB)

 -Original Message-
 From: Paul Johnson [mailto:[EMAIL PROTECTED] On Behalf Of Paul Johnson
 Sent: Friday, May 07, 2004 1:20 PM
 To: NYIMI Jose (BMB)
 Cc: Gabor Urban; [EMAIL PROTECTED]
 Subject: Re: Line number variable
 
 
 On Fri, May 07, 2004 at 01:01:01PM +0200, NYIMI Jose (BMB) wrote:
 
   -Original Message-
   From: Gabor Urban [mailto:[EMAIL PROTECTED]
   
   I was going through the manuals some times, but could not
   find it. Is there a variable containing the actual 
   source-line number during execution? 
  
  Yes, the $.
 
 Sounds more like __LINE__ to me, though this is a token 
 rather than a variable.

Sorry, you right ...
Ignore my previous post.

José.


 DISCLAIMER 

This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer.

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


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




RE: Line number variable....

2004-05-07 Thread Shaw, Matthew

 -Original Message-
 there a variable containing the actual
  source-line number during execution?
 
 
 Yes, the $.

This is incorrect, $. actually contains the 'current line number' from
the last accessed file handle. It will be undef if no filehandles have
been accessed. 

The __LINE__ constant contains the current line number (IE: it will
return the line that __LINE__ is called from) from the source file.

Hope that helps.


Regards,
Matt


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