Deparse

Deparse

am 31.03.2006 10:47:18 von rvtol+news

The output of

perl -Mstrict -MEnglish -MO=Deparse -e '$OUTPUT_AUTOFLUSH=1'

does contain a 'use strict' but does not contain a 'use English'. Is
that OK?



The outputs of

perl -MO=Deparse -MEnglish -Mwarnings -Mstrict -e '$OUTPUT_AUTOFLUSH=1'
perl -MO=Deparse -Mstrict -Mwarnings -MEnglish -e '$OUTPUT_AUTOFLUSH=1'

are equal, so the 'use's are reordered.

--
Affijn, Ruud

"Gewoon is een tijger."

Re: Deparse

am 10.04.2006 18:51:47 von mjtg

Dr.Ruud wrote:
>The output of
>
>perl -Mstrict -MEnglish -MO=Deparse -e '$OUTPUT_AUTOFLUSH=1'
>
>does contain a 'use strict' but does not contain a 'use English'. Is
>that OK?

perl -Mstrict -MEnglish -MO=Deparse -e '$OUTPUT_AUTOFLUSH=1'
use strict 'refs';
$OUTPUT_AUTOFLUSH = 1;
-e syntax OK

That isn't equivalent to the input program - $OUTPUT_AUTOFLUSH isn't
declared. So that's a bug - report with perlbug if you're
enthusiastic.


Mike Guy