You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Boysenberry Payne <bo...@humaniteque.com> on 2005/02/17 19:33:52 UTC
Using Apache::Register and print
I'm using mod_perl with Apache::Register in the httpd.conf file.
The only way I can get output to my web browser is by using
my $r = Apache->request;
$r->print( "Output" );
This is regardless of the Content Type declaration.
If I try printing using a standard print command I get nothing.
I've been exploring mod_perl using books like:
Perl Cookbook
Programming Perl
Learning Perl
as well as a few others by O' Reilly
In all of them, including the ones giving descriptions
on setting up mod_perl on Apache using Apache::Registry
use both the $r->print and standard print in their examples.
Yet, I can only get output by $r->print( "Whatever" ).
Is there something I'm missing. Or is it a configure issue?
I'm using perl 5.8.1, mod_perl 1.26 and apache 1.3.33 on
OS X Panther (i.e. 10.3).
Thanks,
Boysenberry