Re: Can I not use the -E switch in the perl debugger/interpreter?
- From: Peter Scott <Peter@xxxxxxxx>
- Date: Fri, 31 Jul 2009 14:02:01 GMT
On Thu, 30 Jul 2009 08:29:02 -0700, jl_post@xxxxxxxxxxx wrote:
So my question is: Is it possible for me to use the "-E" switch in
the perl debugger/interpreter to automatically invoke the "say" feature,
or can that only be used with perl one-liners (that is, scripts written
entirely at the command line)?
The reason lies in toke.c: the debugger is loaded before -E is processed:
if (PL_perldb) {
/* Generate a string of Perl code to load the debugger.
[...]
if (PL_minus_E)
sv_catpvs(PL_linestr,
"use feature ':5." STRINGIFY(PERL_VERSION) "';");
So at the moment, the answer is no. I'll ask P5P whether it has to stay
this way.
--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274
.
- Follow-Ups:
- References:
- Can I not use the -E switch in the perl debugger/interpreter?
- From: jl_post@xxxxxxxxxxx
- Can I not use the -E switch in the perl debugger/interpreter?
- Prev by Date: FAQ 7.27 How can I comment out a large block of perl code?
- Next by Date: Re: Can I not use the -E switch in the perl debugger/interpreter?
- Previous by thread: Can I not use the -E switch in the perl debugger/interpreter?
- Next by thread: Re: Can I not use the -E switch in the perl debugger/interpreter?
- Index(es):
Relevant Pages
|