Thomas Klausner wrote:
> Hi!
>
> On Don, Jun 05, 2003 at 06:42:08 +1000, Stas Bekman wrote:
>
>
>>to check the version you can do:
>>
>>/home/stas> perl-blead -Mmod_perl -le 'print mod_perl->VERSION'
>>1.2701
>>/home/stas> perl-blead -MApache2 -Mmod_perl -le 'print mod_perl->VERSION'
>>1.9910
>
>
> Nice trick!
Thank perl, not me ;)
> I looked for a place to add this to the docs, but I didn't find anything, so
> I added it to docs/conventions (together with a short note on mod_perl
> version numbers)
>
> patch attachted (feel free to move it to a better place, if you know one)
Thanks Thomas. I doubt anybody ventures to that page.
A few possible locations come to my mind:
put it into mp2 docs (e.g. install.pod) and link to it from guide/install.pod
and/or on the download page?
>
>
> ------------------------------------------------------------------------
>
> ? patch
> Index: src/docs/conventions.pod
> ===================================================================
> RCS file: /home/cvspublic/modperl-docs/src/docs/conventions.pod,v
> retrieving revision 1.1
> diff -u -u -r1.1 conventions.pod
> --- src/docs/conventions.pod 18 Jun 2002 08:39:53 -0000 1.1
> +++ src/docs/conventions.pod 5 Jun 2003 10:18:00 -0000
> @@ -66,4 +66,47 @@
>
> =back
>
> +=head1 mod_perl version numbers
> +
> +Currently, two quite different versions of mod_perl are used.
> +
> +=over
> +
> +=item *
> +
> +B<mod_perl 1.0>
> +
> +stable version, to be used with Apache 1.x
> +
> +=item *
> +
> +B<mod_perl 2.0>
> +
> +development version, to be used with Apache 2.x
> +
> +=back
> +
> +Although the docs refer to I<mod_perl 1.0> the actual version number
> +is quite different. At the time of writing, the latest stable release
> +is mod_perl 1.27. We use the more general mod_perl 1.0 and mod_perl
> +2.0 to avoid either outdated docs or unnecesary work.
> +
> +=head2 What version of mod_perl am I running?
> +
> +To find the version number of mod_perl 1.0, try this:
> +
> + % perl -Mmod_perl -le 'print mod_perl->VERSION'
> +
> +To find the version number of mod_perl 2.0, try this:
> +
> + % perl -MApache2 -Mmod_perl -le 'print mod_perl->VERSION'
> +
> +C<-MApache2> loads Apache2, so if you do not have mod_perl 2.0 installed, this will die with an error message like
> +
> + Can't locate Apache2.pm in @INC (@INC contains: ...
> +
> =cut
> +
> +
> +
> +
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --->
http://perl.apache.org mailto:stas@stason.org
http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com ---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org