I have run into another problem, though. I am writing a PerlProcessConnectionHandler based on the example in "overview of mod_perl-2.0". It's going to listen on two ports, and I need to know which port is being used in order to set up other things. But I could not get get_server_port work.
I have tried:
my $s = $r->server; my $port = $s->get_server_port;
but got error message:
Can't locate object method "get_server_port" via package "Apache::Server" at /usr/local/perl-5.8.0_threaded/lib/site_perl/5.8.0/xxx.pm
I haven't been able to find relevant documentation.
it's a request method, $r->get_server_port
You probably want: $s->port
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com