Should this page:

http://perl.apache.org/docs/2.0/api/Apache/compat.html

be removed, and links to it replaced with

http://perl.apache.org/docs/2.0/api/Apache2/compat.html

See, below

Adam


-------- Original Message --------
Subject: Re: Apache::compat, perldoc modules?
Date: Tue, 27 Jan 2009 23:37:16 -0500
From: Adam Prime <[email protected]>
To: Mark Hedges <[email protected]>
CC: [email protected]
References: <[email protected]>

Mark Hedges wrote:
Trying to get perldoc running in some fashion under Apache2
with libapreq2.

I thought I'd use Apache2::Pod::HTML but no luck:

[Tue Jan 27 14:55:04 2009] [error] [client 70.143.68.29]
Can't locate object method "send_http_header" via package
"Apache2::RequestRec" at
/usr/lib/perl5/site_perl/5.8.8/Apache2/Pod/HTML.pm line
173.\n

send_http_header does not exist in the mod_perl2 api.  Really, that's a
bug in Apache2::Pod::HTML

Apache::Perldoc has the same problem:

[Tue Jan 27 15:00:49 2009] [error] [client 70.143.68.29]
Can't locate object method "send_http_header" via package
"Apache2::RequestRec" at
/usr/lib/perl5/site_perl/5.8.8/Apache/Perldoc.pm line 8.\n

So I thought I'd use Apache::compat even though this may
bork some of my other code, but no luck.  This may be a
documentation error at
http://perl.apache.org/docs/2.0/api/Apache/compat.html,
which says:

This file is, i think, outdated, and you should instead look at this:

http://perl.apache.org/docs/2.0/api/Apache2/compat.html

  # either add at the very beginning of startup.pl
  use Apache2
  use Apache::compat;
  # or httpd.conf
  PerlModule Apache2
  PerlModule Apache::compat

<snip>

This stuff looks like documentation from before the API change that was
updated with sed, but not really read.  It should likely be removed.

Adam



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to