perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Hull <h...@paracel.com>
Subject second $escmode setting is ignored
Date Tue, 28 Jan 2003 19:37:31 GMT
There seems to be a bug in Embperl 2.0b8 where the second and
subsequent attempts to set $escmode without any normal intervening
output are ignored.  Here's an example of the problem.

The following code:

  [!
    sub hello () {
     local $escmode = 0;
     print OUT "<b>hello</b><br>\n";
    }
  !]
  <html>
  <body>
    [- hello(); -]
    [- hello(); -]
  <br><br>reset<br>
    [- hello(); -]
    [- hello(); -]
  <br><br>reset<br>
    [- hello(); hello(); -]
  </body>
  </html>

Produces the output:

  <html>
  <body>
    <b>hello</b><br>
  &lt;b&gt;hello&lt;/b&gt;&lt;br&gt;
  <br><br>reset<br>
    <b>hello</b><br>
  &lt;b&gt;hello&lt;/b&gt;&lt;br&gt;

  <br><br>reset<br>
    <b>hello</b><br>
  &lt;b&gt;hello&lt;/b&gt;&lt;br&gt;
  </body>
  </html>
-- 
David Hull

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message