Hi Mod_perl gurus
I was just reading a thread about blank output after upgrading to perl 5.8.1 and I've got the same problem
The thread previously was subject: Blank output after 5.8.1 upgrade
I've got a Linux server runing mod_perl 1 and perl 5.6.0 and apache 1.
I've got a laptop running apple's OS X with 10.3 so that's Perl 5.8.1 status hooks on OSX say:
Embedded Perl version v5.8.1 for Apache/1.3.28 (Darwin) mod_perl/1.26
If I print like so I get output in the browser (on my Linux Box and on
my OSX):
$r->print("mod_perl rules!\n");
If I do it like this I do not on my OSX box, but OK on my linux box:
print "OK";
2 questions.
I now read through the Changes file and I think you need at least 1.27, which has this entry:
starting from perl 5.7.3 for tied filehandles, tiedscalar magic is applied to the IO slot of the GP rather than the GV itself. adjust the TIEHANDLE macro to work properly under 5.7.3+. [Charles Jardine <[EMAIL PROTECTED]>, Stas Bekman <[EMAIL PROTECTED]>]
1. Do I need to upgrade my Mod_perl version to 1.29 to fix this on my OSX setup as suggested at:
http://www.gossamer-threads.com/perl/mailarc/gforum.cgi?post=85390; search_string=apache%20print%20no%20output;guest=1597114&t=search_engine #85390
Yes.
2. Should I infact be using the $r->print("OK"); style rather than the straight forward Print anyway. Perl... there's too many ways to do it ;)
It's up to you. Either should work.
BTW I really don't want to go and do separate compiles at this time. It's just too scary as I don't actually know what either Apple or Ensim are doing, getting there, but not yet.
Check if there 1.27 build available. It should work just as well, but 1.29 includes a few bug fixes, so if you upgrade, rather go for the latest version if you can.
__________________________________________________________________ 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
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html