In answering another question today, I noticed that the variable
$Apache::Registry::NameWithVirtualHost is not documented in the
perldoc for Apache::Registry.

While scanning the Registry.pm file, I further noticed that there is a
call to $r->get_server_name for the virtual host name.  This too is
not documented in perldoc Apache.  The only documented way I see to
get this from the $r object is to use $r->server->server_hostname.

Should $r->get_server_name() be documented, or is it a "private"
method?  It seems wasteful to create an Apache::Server object just to
fetch the virtual host name.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: [EMAIL PROTECTED]       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

Reply via email to