in reply to Is it possible to determine the eval block accumulator?
Is there any way to determine, after an eval has taken place, what the internal eval counter is in perl so I can maintain a table of eval numbers to english names so when I trap thse Apache errors I can replace (eval xxx) with something that makes a bit more sense?
Use the #line meta-comment:
eval "#line 1 foo\ndie"; print $@;
Juerd
- http://juerd.nl/
- spamcollector_perlmonks@juerd.nl (do not use).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Is it possible to determine the eval block accumulator?
by BlacKat (Novice) on Feb 14, 2003 at 08:20 UTC | |
by djantzen (Priest) on Feb 14, 2003 at 08:51 UTC | |
by Abigail-II (Bishop) on Feb 14, 2003 at 11:58 UTC | |
by djantzen (Priest) on Feb 14, 2003 at 12:44 UTC | |
by Abigail-II (Bishop) on Feb 14, 2003 at 12:48 UTC | |
| |
by Juerd (Abbot) on Feb 14, 2003 at 08:57 UTC |