Hossein has asked for the wisdom of the Perl Monks concerning the following question:
I need to know which subroutine is running in order to display error message.
How do I get hold on subroutin name in a variable when the subroutine is running?
I prefare ??? to contain the running subroutine name.
print "$CFG{ERROR_NOFILE} [ ??? ]\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to get a subroutine name?
by LanX (Saint) on Jun 26, 2013 at 11:00 UTC | |
|
Re: how to get a subroutine name?
by hdb (Monsignor) on Jun 26, 2013 at 11:10 UTC | |
by LanX (Saint) on Jun 26, 2013 at 12:04 UTC | |
by hdb (Monsignor) on Jun 26, 2013 at 12:25 UTC | |
by clueless newbie (Curate) on Jun 26, 2013 at 12:49 UTC | |
by hdb (Monsignor) on Jun 26, 2013 at 12:54 UTC | |
by tobyink (Canon) on Jun 26, 2013 at 14:05 UTC |