Garry Heaton wrote:
Using the default installation of Mac OSX 10.3/Apache
1.3.29/mod_perl-1.26/Perl 5.8.1RC1, the following script:

#!/usr/bin/perl -w

use strict;
use CGI qw(:standard);

print header(), start_html(), '<pre>';

for (sort keys(%ENV)) {
  print "$_ = $ENV{$_}\n";
}

print '</pre>', end_html();

exit(0);


... works as a CGI but under mod_perl all that is returned to the browser is:


<html><body></body></html>

That's not what your server returns, that's a fake page that your browser gives to you. You need to test with a command line tool, like LWP's GET, lynx, links or whatever is available on your OS.


I remember someone asked that question before. Something about STDOUT being detached from $r. You could test with a simple script:

 # test.pl
 my $r = shift;
 $r->print("Content-type: text/plain\n\n");
 $r->print("It works");

They recompiled Apache/mod_perl by themselves and it all worked.

I'm not on OSX and don't have personal experience with it, so I'm just relaying someone's else words...


-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to