develooper Front page | perl.perl5.porters | Postings from April 2018

[perl #133123] eval '__PACKAGE__' in debug mode do not return rightpackage

Thread Previous | Thread Next
KES via RT
April 23, 2018 14:14
[perl #133123] eval '__PACKAGE__' in debug mode do not return rightpackage
Message ID:
>If I understand you correctly, you're wanting __LINE__etc to be changed from compile-time constants to run-time functions?

No. Maybe change the value it is compiled into when this is 'eval' in DB package

> By 'eval in debugger mode', are you referring to the 'x' debugger
> command,
> or perl's built-in 'eval' function, or something else?
Sorry, This is too often I may explain poor

I mean next:

An eval '' executed within a subroutine defined in the DB package doesn't see the usual surrounding lexical scope, but rather the scope of **the first** non-DB piece (FRAMENUMBER=0) of code that called it. You can provide FRAMENUMBER to force eval see the second (FRAMENUMBER=1), the third (FREAMENUMBER=2) scope 

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About