perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject Re: print STDOUT "something" and $optRedirectStdout=1 fails on 2.0b8
Date Mon, 16 Sep 2002 04:05:22 GMT

> After a year away from Embperl (and the web in general), I'm trying to
> get some old code from Embperl 1.3 up and running again. The code
> assumes optRedirectStdout is true and makes lots of calls to print
> statements (it's in a module).

optRedirectStdout is not support in 2.0b8. 

> despite what I understand to be aliasing code in
> Embperl::Out. Further, if I fully qualify the filehandle I still get:
> print() on unopened filehandle Embperl::OUT

In your module do a

tie *OUT, 'Embperl::Out' ;

then you can print to OUT or add a

select (OUT)

and printing without a filehandle should work again


Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:         Voice:    +49 6133 925131
WWW:      Fax:      +49 6133 925152

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message