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/


Reply via email to