Perl Special Variable Containing the name of the method currently in?
- From: Nigel <nigelstuart@xxxxxxxxx>
- Date: Fri, 30 May 2008 11:06:29 -0700 (PDT)
Hello,
Just out of curiosity.
Is there a way to get the name of the subroutine Perl is currently in
when it is running?
For example, if I have a subroutine declared with the name sub
helloWorld, is there any way from within that subroutine to
programmatically get 'helloWorld' without having to hardcode it?
Thanks!
- Nigel
.
- Follow-Ups:
- Re: Perl Special Variable Containing the name of the method currently in?
- From: A. Sinan Unur
- Re: Perl Special Variable Containing the name of the method currently in?
- From: nolo contendere
- Re: Perl Special Variable Containing the name of the method currently in?
- Prev by Date: Re: Pop3 Email - Perl
- Next by Date: Re: Perl Special Variable Containing the name of the method currently in?
- Previous by thread: Pop3 Email - Perl
- Next by thread: Re: Perl Special Variable Containing the name of the method currently in?
- Index(es):
Relevant Pages
|