perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Syntax=perl problem
Date Fri, 03 Jun 2005 12:15:57 GMT
> -----------------------
> /usr/local/apache2/cgi-perl/warreng/header_test.pl:
> 
> #!/usr/bin/perl
> print 'allen';

Should be

print OUT 'allen' ;

Or you have to put a

select(OUT) ;

At the top of your script.

> 
> Finally, I added the line:
> 
> select((select(STDOUT), $| = 1)[0]);
> 
> in header_test.pl.
> 
> Now, 'allen' is printed *before* 'output:' is printed.
> 

That's because STDOUT goes directly to the client, while OUT goes via
Embperl.

Gerald


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message