Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Perl / Modules / September 2008



Tip: Looking for answers? Try searching our database.

CPAN Index on ModPerl::MethodLookup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Imacat - 04 Sep 2008 19:08 GMT
Dear all,

   Hi.  This is imacat from Taiwan.  I found a strange recorded in
02packages.details.txt.gz:

imacat@rinse ~ % gunzip -c 02packages.details.txt.gz | grep
ModPerl::MethodLookup
ModPerl::MethodLookup             0.009 G/GO/GOZER/mod_perl-2.0.4.tar.gz
imacat@rinse ~ % perl -mModPerl::MethodLookup -e 'print
$ModPerl::MethodLookup::VERSION;'; echo
2.000004
imacat@rinse ~ % echo r | cpan | grep ModPerl::MethodLookup
ModPerl::MethodLookup         undef     0.009  GOZER/mod_perl-2.0.4.tar.gz
imacat@rinse ~ % grep '$VERSION' /usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi-ld/ModPerl/MethodLookup.pm
our $VERSION = $mod_perl2::VERSION;
imacat@rinse ~ %

   The version of ModPerl::MethodLookup in GOZER/mod_perl-2.0.4.tar.gz
is the same as mod_perl, which is 2.000004 but unparsable.  It's OK to
show "undef".  But 0.009?  Where did this number come from?

   (I found this when I'm doing regular, weekly CPAN modules update.)

--
Best regards,
imacat ^_*' <imacat@mail.imacat.idv.tw>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.asc

<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://lists.linux.org.tw/cgi-bin/mailman/listinfo/tlug
Andreas J. Koenig - 04 Sep 2008 21:15 GMT
 >     The version of ModPerl::MethodLookup in GOZER/mod_perl-2.0.4.tar.gz
 > is the same as mod_perl, which is 2.000004 but unparsable.  It's OK to
 > show "undef".  But 0.009?  Where did this number come from?

I fear this comes from lib/ModPerl/DummyVersions.pm which I do not understand.

Signature

andreas

Imacat - 07 Sep 2008 18:06 GMT
>   >     The version of ModPerl::MethodLookup in GOZER/mod_perl-2.0.4.tar.gz
>   > is the same as mod_perl, which is 2.000004 but unparsable.  It's OK to
>   > show "undef".  But 0.009?  Where did this number come from?
> I fear this comes from lib/ModPerl/DummyVersions.pm which I do not understand.

   I see.  But $ModPerl::MethodLookup::VERSION is 2.000004, which is
still not the same as 0.009 in 02packages.details.txt.gz.

imacat@rinse ~ % grep '$ModPerl::MethodLookup::VERSION'
lib/ModPerl/DummyVersions.pm
$ModPerl::MethodLookup::VERSION   = 2.000004;
imacat@rinse ~ % gunzip -c 02packages.details.txt.gz | grep
ModPerl::MethodLookup
ModPerl::MethodLookup             0.009  G/GO/GOZER/mod_perl-2.0.4.tar.gz
imacat@rinse ~ %

   What happened?  Why is CPAN indexed 0.009 as the version number of
ModPerl::MethodLookup?

--
Best regards,
imacat ^_*' <imacat@mail.imacat.idv.tw>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.asc

<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://lists.linux.org.tw/cgi-bin/mailman/listinfo/tlug
Andreas J. Koenig - 08 Sep 2008 20:54 GMT
 >     I see.  But $ModPerl::MethodLookup::VERSION is 2.000004, which is
 > still not the same as 0.009 in 02packages.details.txt.gz.

 > imacat@rinse ~ % grep '$ModPerl::MethodLookup::VERSION'
 > lib/ModPerl/DummyVersions.pm
 > $ModPerl::MethodLookup::VERSION   = 2.000004;
 > imacat@rinse ~ % gunzip -c 02packages.details.txt.gz | grep
 > ModPerl::MethodLookup
 > ModPerl::MethodLookup             0.009  G/GO/GOZER/mod_perl-2.0.4.tar.gz
 > imacat@rinse ~ %

 >     What happened?  Why is CPAN indexed 0.009 as the version number of
 > ModPerl::MethodLookup?

In this chapter:

   http://www.cpan.org/modules/04pause.html#conventions

it is explained that the PAUSE indexer uses such a piece of code:

   % perl -MExtUtils::MakeMaker -le 'print MM->parse_version(shift)' lib/ModPerl/DummyVersions.pm
   0.009

I think that the only way out for complex distribution architectures
like this one is that the architects write their own META.yml and take
the duty from the indexer.

Signature

andreas

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.