On Thu, 30 Dec 2010 18:30:04 -0800, Parag Kalra 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.
printf("currently in %s\n", (caller(0))[3] =~ /^.+:(\w+)$/);See `perldoc -f caller'. ----------- -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
