Home: Perl Programming Help: mod_perl:
Apache::Request Question



alex_v2
User

Jun 27, 2005, 1:24 AM


Views: 12743
Apache::Request Question

I am setting up a new mod_perl server. I have everything working just fine but I want to know if there is a way to make Apache::Request the default handler instead of just Apache.

In other words I want to be able to do:

my $r = shift;

and have that be an Apache::Request object instead of an Apache object. Right now I am doing

my $r = Apache::Request->new(shift);

Can anyone tell me how to change it or if you even can. Thanks in advance.

-Alexander