in reply to Prevent my STDERR logging in evals...
I seem to remember that caller(0) can give you that information. You have to specify the call-frame explicitly to get the full spectrum of data. The fourth element of the array is 'subroutine name', if you are in an eval block it reads '(eval)'.
----
I Go Back to Sleep, Now.
OGB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Prevent my STDERR logging in evals...
by ikegami (Patriarch) on May 08, 2008 at 00:11 UTC |