[Israel.pm] mod_perl 2 newnie question

semuel semuel at semuel.co.il
Fri Jan 9 04:38:17 PST 2004

Hello There.


Here is a code from the mod_perl documentation. 

The question is: what is $r? I've seen it being used as if it's all the

In the example below, is $r Apache::RequestRec or Apache::RequestIO?




--- Start Example ---

package MyApache::Deparse;

use strict;

use warnings;

use Apache::RequestRec ();

use Apache::RequestIO ();

use B::Deparse ();

use Apache::Const -compile => 'OK';

sub handler {

     my $r = shift;


     $r->print('sub handler ', B::Deparse->new->coderef2text(\&handler));

     return Apache::OK;



--- End Example ---

More information about the Perl mailing list