PS : I'm not looking for a way of getting the output I expected, because I
rewrote the code I used differently.  However, if the code I cited is
incorrectly interpreted by Embperl, it would be nice to have the problem
fixed, so that other people do not waste time with such a bug.  But I may
be incorrectly expecting a certain result, hence my orginal question
(feature or bug?).


---------- Forwarded message ----------
Date: Mon, 1 Apr 2002 19:29:38 +0200 (DFT)
From: Eric-Olivier Le Bigot <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Sticky $escmode in 2.0b7: bug?



  Hello,

I would like to change the HTML escaping mode inside a [- -] block; I
thought the following piece of code would do it:

----------------------------------------------------------------------------
[-
local $escmode = 7;
print OUT "�ric\n";
local $escmode = 0;
print OUT "�ric\n";
-]
----------------------------------------------------------------------------

but the HTML source produced by Embperl 2.0b7 is

----------------------------------------------------------------------------
&eacute;ric
&eacute;ric
----------------------------------------------------------------------------

whereas I was expecting

----------------------------------------------------------------------------
&eacute;ric
�ric
----------------------------------------------------------------------------

  Is it a feature or a bug?

  EOL

--
Eric-Olivier LE BIGOT (EOL)
------o-o----------------------------------------------------o-o------
        National Institute of Standards and Technology (NIST)
        100 Bureau Drive, Stop 8401
        Gaithersburg, MD  20899-8401
        United States of America
------o-o----------------------------------------------------o-o------
off.: (301)-975-4397                               fax: (301)-975-4578
home: (301)-633-3160                         e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to