[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: re-factoring 'print' for $r


I was getting blank pages until switching SetHandler back to perl-script.

(Eureka! Yet more evidence that MP does quietly handle loose compliance until you turn it off !)

Thanks again Perrin for shedding light and sharing wisdom.


-w



On Dec 22, 2007 10:53 PM, <suppressed> wrote:
Quoting Perrin Harkins <suppressed>:

> On Dec 22, 2007 5:21 PM, Jonathan Vanasco <suppressed > wrote:
>> On Dec 22, 2007, at 4:47 PM, Perrin Harkins wrote:
>> > By the way, if you just call print() normally it should all be grabbed
>> > by mod_perl anyway.  Is there some reason you need to call $r->print()
>> > instead?
>>
>> I thought it only does that if you bind STDOUT the right way on
>> compile time, otherwise it just gets lost in the ether
>
> No, mod_perl does all of that for you.  It's been this way since 1996.
>

I think the print magic only happens if you are running under
SetHandler perl-script, and not if you are running under SetHandler
modperl.

Adam



Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.