You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Ben Kim <be...@yahoo.com> on 2006/01/31 18:10:58 UTC
question
Hi,
I have an installation with Apache/1.3.29,
mod_perl/1.29 and HTML::Embperl 1.3.6.
If I use this code,
open FH, "file";
@file = <FH>;
I get this error.
ERR: 24: Error in Perl code: syntax error at ...
line ..., at EOF
This is fixed only by doing
(1) @file = <FH>; or
(2) @file = <FH>;
But the problem is that I'm running an upgraded server
off of the same file. (Embperl 2.1.0) The new server
gives me this error.
(1) <FH>
ERR: 24: Error in Perl code: syntax error at ... at
EOF
(2) <FH>
ERR: 24: Error in Perl code: syntax error at ..., near
">"
If I use while (<FH>) directly, some servers work and
some give the same errors. I'm trying to find why but
only found that on the ones that allows while (<FH>)
I'm using rewrite modules.
I can work around by using read calls with a few more
lines, but would like to know whether I hit a closed
wall or I'm just not seeing the door.
Thanks.
Ben Kim
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: question
Posted by Gerald Richter <ri...@ecos.de>.
>
> I can work around by using read calls with a few more lines,
> but would like to know whether I hit a closed wall or I'm
> just not seeing the door.
>
>From README.v2:
- The option optRawInput is replaced by EMBPERL_INPUT_ESCMODE,
which is off by default (same as when optRawInput was set
in 1.x)
So by setting optRawInput (in 1.3.6) or EMBPERL_INPUT_ESCMODE (in 2.x) you
can get the same behaviour in both versions. The default has changed between
1 and 2, because it seems what most people want is the current default to
not unescape the input.
Gerald
** Virus checked by BB-5000 Mailfilter **
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org