$ perl -MApache2::RequestRec -e 'Apache2::RequestRec->new()' Can't locate object method "new" via package "Apache2::RequestRec" at -e line 1. #### new Create a new Apache2::RequestRec object. $r = Apache2::RequestRec->new($c); $r = Apache2::RequestRec->new($c, $pool); #### use strict; use warnings; use Test::More tests => 1; use Apache2::Cookie 2.08; use Apache2::RequestRec 2.0; use Apache2::RequestUtil 2.0; # This, of course, doesn't work: my $r = Apache2::RequestRec->new(); # This is straight out of the synopsis, # but where do I get that blasted $r? my $cookie = Apache2::Cookie->new( $r, -name => "mycookie", -value => "whatever" ); isa_ok( $cookie, 'Apache2::Cookie' );