perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryszard Lach <si...@id.pl>
Subject Re: Beginner's question
Date Thu, 15 Jun 2000 15:47:30 GMT
On Wed, Jun 14, 2000 at 12:45:06PM -0400, Erich L. Markert wrote:
> Try:
> 
> [-
> open(FILE,"</path/file") || die "Can't open file";
> $escmode = 0; # needed for the subsequent print in "while" 
> 	      # otherwise Embperl will complain
> while(<FILE>){
> 	print;
> }
> $escmode = 1;
> close(FILE);
> -]

Well the following did work:

open (FILE, "\</path/file") or die;

while (\<FILE>) {
	print OUT $_;
}

But a little bit different:

open (FILE, "/path/command \</path/file |") or die;

while (\<FILE>) {
    print OUT $_;
}

did not. I received Internal Server Error and the following in apache's error
log:

[Thu Jun 15 17:42:39 2000] [error] [client 192.168.1.66] malformed header from
script. Bad header=<table>: /usr/lib/cgi-bin/embpcgi.pl

what means, embperl skipped all html stuff inserted before script part. Do you
have any ideas?


Siaco.

-- 
Ryszard Łach
Internet Designers s.c. 
http://www.id.pl

Mime
View raw message