I have already tried that.

Specially - caller(3) but it returns the details of the caller i.e
from where it was called and no particular details of where it is in.

Cheers,
Parag




On Thu, Dec 30, 2010 at 6:50 PM, Kenneth Wolcott
<kennethwolc...@gmail.com> wrote:
> On Thu, Dec 30, 2010 at 18:30, Parag Kalra <paragka...@gmail.com> wrote:
>> Hi,
>>
>> Just like $0 reveals the current script name is there any variable
>> using which I can find the current sub-routine I am currently in.
>>
>> Snippet of what I am looking for:
>>
>> use strict;
>> use warnings;
>>
>> sub foo_bar () {
>>    print "You are currently using the function -  $<some_variable>\n";
>> }
>>
>> &foo_bar;
>>
>>
>> Cheers,
>> Parag
>
> Hmmm...
>
> Try typing "perldoc -f caller" and see if that helps...
>
> Ken Wolcott
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to