Philip M. Gollucci wrote:
> Jason Rhinelander wrote:
>> Is it, then, intentional?
> You know, I'm not entirely sure, but I betting its because
> STDIN, STDERR, STDOUT are re-tied to the streams in the request object
> automagically for you in Registery/PerlRun under the 'perl-script'
> Handler.  Under the mod_perl handler, these are not tied for you; thus,
> you must use $r->print() instead.
> 
> The re-tie ing is likely goofing something.

It isn't, actually: I was mistake on this -- the stdin, stdout, and
stderr aliases are only available in package main[1] and so, of course,
don't work under ::Registry and ::PerlRun.  As this shows up with a
"binmode() on unopened filehandle" warning when warnings are enabled, I
don't think it warrants a documentation update.

1 - documented in perldoc perlop (search for "stdin", case-sensitively).


-- 
-- Jason Rhinelander

Reply via email to