> But try this :
> At the beginning of your script, add these lines :
> 
> use Apache::RequestRec;
> 
> my $r=shift;
> print "Hostname : ",$r->hostname,"\n";
> 
> if you don't get an error, and you see the line in the output, then for sure 
> you /are/
> running under mod_perl.

I did this and it gave me an error at this line:

> use Apache::RequestRec;

But if I replace it by 

> use Apache2::RequestRec;

Then the script loads without problem. I have put a BEGIN{} block in my 
printenv.pl script, which prints something on the screen, and it does seem to 
only print the first time I execute the script. So it does seem like mod_perl 
is indeed working.

I guess the documentation on this page is  not accurate then:

Reply via email to