Yaakov has asked for the wisdom of the Perl Monks concerning the following question:
Is there a proper way to tell eval the origin of the code (in our case the string "Method P::foo") that the messages come out correctly?
At the moment, I hack the source of perl: I found the line where a buffer is set up with the string "_<(eval %l)". I added some code to check whether the perl variable $CB::EvalName is defined and true. If yes, it replaces the buffer (and comes out correctly). If no, then the buffer is used as normal.
It works fine but it doesn't look right...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to tell eval where the code is from
by tilly (Archbishop) on Aug 08, 2000 at 15:37 UTC | |
by Yaakov (Novice) on Aug 08, 2000 at 15:56 UTC | |
by merlyn (Sage) on Aug 08, 2000 at 16:35 UTC | |
by Yaakov (Novice) on Aug 08, 2000 at 16:58 UTC | |
by tilly (Archbishop) on Aug 08, 2000 at 16:14 UTC | |
by merlyn (Sage) on Aug 08, 2000 at 16:38 UTC | |
by tilly (Archbishop) on Aug 08, 2000 at 16:41 UTC | |
|