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
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
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
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/
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
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
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
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.