FAQ
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 = &lt;FH>; or
(2) @file = &lt;FH&gt;;

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) &lt;FH>
ERR: 24: Error in Perl code: syntax error at ... at
EOF

(2) &lt;FH&gt;
ERR: 24: Error in Perl code: syntax error at ..., near
"&gt"

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

Search Discussions

  • Gerald Richter at Feb 1, 2006 at 5:13 am

    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupembperl @
categoriesmodperl, perl
postedJan 31, '06 at 5:11p
activeFeb 1, '06 at 5:13a
posts2
users2
websiteperl.apache.org

2 users in discussion

Ben Kim: 1 post Gerald Richter: 1 post

People

Translate

site design / logo © 2022 Grokbase