Re: A newbie question - line number inside the script

2008-07-17 Thread Amit Koren
Amit, Thank you for the quick response. What i actually meant was the line number of the source-script file, that is now being read (executed). This is achieved (so i learned from the list) by the __LINE__ directive. Thanks again. Amit. On Wed, Jul 16, 2008 at 1:24 PM, Amit Saxena <[EMAIL PROTE

Re: A newbie question - line number inside the script

2008-07-16 Thread Peter Aronoff
Hi Stewart, Is there *anything* that might convince you to stop top-posting? Let me put it another way: please stop top-posting. Thanks. signature.asc Description: Digital signature

Re: A newbie question - line number inside the script

2008-07-16 Thread Rob Dixon
Amit Koren wrote: > > I'm a newbie to Perl, (and to this mailing list) :) > There's a task i was given, in which it is necessary to get the > number of the current executing line/command - inside the script itself. > > Can someone assist please ? The value of __LINE__ is the source file line

RE: A newbie question - line number inside the script

2008-07-16 Thread V.Ramkumar
Just use $. To print current line number. Regards, Ramkumar -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: A newbie question - line number inside the script

2008-07-16 Thread Stewart Anderson
al Message- From: Amit Koren [mailto:[EMAIL PROTECTED] Sent: 16 July 2008 11:22 To: beginners@perl.org Subject: A newbie question - line number inside the script Hi list. I'm a newbie to Perl, (and to this mailing list) :) There's a task i was given, in which it is necessary to

RE: A newbie question - line number inside the script

2008-07-16 Thread Stewart Anderson
You could use the __LINE__ directive in your error handler. -Original Message- From: Amit Saxena [mailto:[EMAIL PROTECTED] Sent: 16 July 2008 11:25 To: Amit Koren Cc: beginners@perl.org Subject: Re: A newbie question - line number inside the script On Wed, Jul 16, 2008 at 3:52

Re: A newbie question - line number inside the script

2008-07-16 Thread Amit Saxena
On Wed, Jul 16, 2008 at 3:52 PM, Amit Koren <[EMAIL PROTECTED]> wrote: > Hi list. > > I'm a newbie to Perl, (and to this mailing list) :) > There's a task i was given, in which it is necessary to get the > number of the current executing line/command - inside the script itself. > > Can someone as

A newbie question - line number inside the script

2008-07-16 Thread Amit Koren
Hi list. I'm a newbie to Perl, (and to this mailing list) :) There's a task i was given, in which it is necessary to get the number of the current executing line/command - inside the script itself. Can someone assist please ? Thanks in advance, Amit.