develooper Front page | perl.perl5.porters | Postings from August 2009

Debugger vs -E

Thread Next
Peter Scott
August 4, 2009 10:59
Debugger vs -E
Message ID:
Hello.  I solicit your thoughts on how this combination of runtime flags 
might be made to cooperate:


the goal being that perl code evaled in the debugger might include such 
modern gems as 'say', etc.

The processing of the -E flag currently takes place in toke.c after the 
processing of the -d flag, but hoisting it up is not sufficient, because is invoked via 'require' and the "use feature ':5.10'" that is 
generated by -E has a lexical scope.  My ideas of how to solve this so far 
are unpalatable (hardcode a version of 'require' that doesn't have the 
lexical hiding, modify to accept some sort of argument, do 
horrible things with $evalarg, etc).  Can anyone see a nice solution?

Peter Scott

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