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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]