You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Eric-Olivier Le Bigot <Er...@spectro.jussieu.fr> on 2002/04/01 20:48:06 UTC
PS to Sticky $escmode in 2.0b7: bug? (fwd)
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 <le...@spectro.jussieu.fr>
To: embperl@perl.apache.org
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
----------------------------------------------------------------------------
éric
éric
----------------------------------------------------------------------------
whereas I was expecting
----------------------------------------------------------------------------
é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: elebigot@nist.gov
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org