perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Kim <ben...@yahoo.com>
Subject question
Date Tue, 31 Jan 2006 17:10:58 GMT
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


Mime
View raw message