Package: libhtml-embperl-perl
Version: 1.3.6-2
When using HTML::Embperl, the following embperl script runs into an
endless loop:
[-
open(UNAME, "/bin/uname -a |");
while(<UNAME>) { print; }
close(UNAME);
-]
It seems that instead of <UNAME>, another file handle (STDIN?) is
read.
The slightly modified script
[-
open(UNAME, "/bin/uname -a |");
while(defined($_ = <UNAME>)) { print; }
close(UNAME);
-]
gives an error message, although it's valid perl code:
[22397]ERR: 24: Error in Perl code: syntax error at /var/www/embperl/test.html
line 4, near "= )"
syntax error at /var/www/embperl/test.html line 5, near "}
close"
The same script runs fine when using Embperl-2.0 (i.e. Package
libembperl-perl and handler Embperl instead of HTLM::Embperl).
So I guess it is an upstream problem.
||/ Name Version Description
+++-=======================-=======================-==============================================================
ii apache 1.3.33-6sarge1 versatile, high-performance
HTTP server
ii libapache-mod-perl 1.29.0.3-6sarge1 integration of perl with
the Apache web server
ii libhtml-embperl-perl 1.3.6-2 Library for embedding perl
in HTML
Regards,
Harald
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]