Consider a module Foo:

#Foo.pm
package Foo;
$VERSION = '2.0';

use XSLoader;
XSLoader::load __PACKAGE__, $VERSION;
1;

% perl-blead-ithread -MExtUtils::MakeMaker \
  -le 'print MM->parse_version(shift)' Foo.pm
2.0

Now if I put this module as a PREREQ_PM, MM fails to satisfy it, since it fails to parse the version number unless I nuke this line:

XSLoader::load __PACKAGE__, $VERSION;

Any idea why and how to workaround it? I've tried all kind ideas, but it always fails.

This is with MM 6.21 from blead perl (but seems to be the case with older MM as well).

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to