You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Aaron Johnson <so...@gina.net> on 2002/03/05 07:48:56 UTC

Different behavior on OUT?

I have just started seriously using the 2.0.5b version and I noticed
something that I think is different from past versions.  If I have a
block like this:

[-
foreach $key (keys %{$hashref}) {
    print OUT "$key = $hashref->{$key}<br>";
}
-]

The <br> is missing when the page is rendered.  There are no error
messages and it hasn't been converted to &lt;br&gt; , it is just gone.

This code works fine:
[$ foreach $key (keys %{$hashref}) $]
    [+ $key +] = [+ $hashref->{$key} +]<br>
[$ endforeach $]

As does this:
[-
foreach $key (keys %{$hashref}) {
    print OUT "$key = $hashref->{$key}\<br>";
}
-]
I have 
PerlSetEnv	EMBPERL_ESCMODE 0
in my conf file since I know that may effect this.

Is this a bug or a behavior that has changed? 

Aaron Johnson

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


Re: Different behavior on OUT?

Posted by Gerald Richter <ri...@ecos.de>.
>
> [-
> foreach $key (keys %{$hashref}) {
>     print OUT "$key = $hashref->{$key}<br>";
> }
> -]
>
> The <br> is missing when the page is rendered.

This has nothing to do with OUT. It looks like you need to set optRawInput
in EMBPERL_OPTIONS. In 1.3 you can set this inside the page, in 2.0 you need
to set it in your httpd.conf

Gerald

P.S. the input escaping will change to a more intuitive way in b6 or b7, so
it will be hopefully less confusing in the future

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



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