>     my $r = shift;
    my $r_con = $r->connection;
    my $apr = APR::Request::Apache2->handle( $r_con );

=head2 handle

    APR::Request::Apache2->handle($r)

Creates an APR::Request::Apache2 object.  The argument C<< $r >>
is an Apache2::RequestRec object (from mod_perl2).


You're passing a Connection object, you just want $r

     my $apr = APR::Request::Apache2->handle($r);

And yes, ->handle() is now the preferedd syntax.

new() was added an alias to instance() I believe, but thats in the Apache2::Request::* namespace, and we don't recommend those modules anymore. Left in for back compat mainly.


--
END
---------------------------------------------------------
    What doesn't kill us can only make us stronger.
               Nothing is impossible.
                                
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
     http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com

Reply via email to