Re: Empty $r in mod_perl



jason.yfho@xxxxxxxxx schrieb:
My perl script in "/usr/local/apache2/htdocs/test1.pl":
#!/usr/local/bin/perl5.8.8
use strict;
my $r = shift;
$r->print("It worked!!!\n");

I had to do this in my Apache2 handler:

require Apache2::RequestUtil;
Apache2::RequestUtil->request($r);

$r->print("It worked!!!\n");

Maybe it works for you.
--
Thomas Wittek
http://gedankenkonstrukt.de/
Jabber: streawkceur@xxxxxxxxxxxxxxxxxx
.



Relevant Pages