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 PROTECTED]>
wrote:

>
>
> 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 assist please ?
>>
>> Thanks in advance,
>>
>> Amit.
>>
>
> If you are referring to process ID by "number", you can use $$ for that.
>
> Regards,
> Amit Saxena
>

Reply via email to