Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [mp2 patch] $Apache2::VERSION: msg#00183

apache.mod-perl.devel

Subject: Re: [mp2 patch] $Apache2::VERSION

David Wheeler wrote:
On Jul 12, 2004, at 5:12 PM, Stas Bekman wrote:

It does so only for mod_perl itself. It doesn't solve it for CPAN modules.


Yes, but it allows them to solve it themselves:

use constant => MODPERL = eval { require Apache2 } ? 2 : eval { require Apache } ? 1 : die $@;

Right?

Depends on what's your goal. What if you have both installed? You will never get 1.

This patch introduces nothing that you can't easily do without it. The only purpose is to workaround CPAN/PAUSE limitations.

moreover at the moment mp1's Apache is invalid, and for mp2 anything before the next version won't have $Apache2::VERSION at all. So it's probably only after 2.0 is released and we completely deprecated 1.99_xx, you will be able to rely on that. Therefore it's better to continue documenting that one should check $mod_perl::VERSION.

The only drawback I can see is a new potential for confusion: "which module should I require, mod_perl or Apache2", which of course will be documented, but who reads docs nowadays...


Not me! ;-)

Seriously, I think that the gradually improving docs will help. And this sort of thing should definitely go into the FAQ.

99% of the user docs are FAQ. so if you call those docs or FAQ it's exactly the same thing.

--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation