On Wed, 1 Sep 2004, Fred Moyer wrote: > Date: Wed, 1 Sep 2004 07:02:21 -0700 (PDT) > From: Fred Moyer <[EMAIL PROTECTED]> > To: Fred Moyer <[EMAIL PROTECTED]> > Cc: Jie Gao <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: [mp2] 1.99_16 problem > > > >> Can't locate object method "server_hostname" via package > >> "Apache::ServerRec" at > >> ... 300.\n\t..., 'Apache::RequestRec=SCALAR(0x881968)') called > >> at -e line 0\n\teval {...} called at -e line 0\n > >> > >> The line concerned is: > >> > >> my $host_name = $r->server->server_hostname; > > > > http://perl.apache.org/docs/2.0/api/Apache/ServerRec.html#C_server_hostname_ > > That answer I just gave was not obvious in its statement of the solution > to your problem. What you appear to be missing is: > > use Apache::ServerRec(); Thanks very much; I found that out eventually last night. I am using it for production; sort of in a rush to get it work. Regards, Jie -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html