From: Dave Rolsky Date: Mon, 25 Aug 2008 04:55:22 +0000 (+0000) Subject: We need to take a copy of the version as a string in order to pass X-Git-Tag: 0.64_05~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8a7085c1c895cd5a263fcf27224ea0999d65e704;p=gitmo%2FClass-MOP.git We need to take a copy of the version as a string in order to pass that to the XSLoader, or else it complains with something like '0.64_04 doesn't match 0.6404' --- diff --git a/lib/Class/MOP.pm b/lib/Class/MOP.pm index c124ad9..a646e00 100644 --- a/lib/Class/MOP.pm +++ b/lib/Class/MOP.pm @@ -49,6 +49,7 @@ BEGIN { } our $VERSION = '0.64_04'; +our $XS_VERSION = $VERSION; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -59,7 +60,7 @@ unless ($ENV{CLASS_MOP_NO_XS}) { local $@; eval { require XSLoader; - __PACKAGE__->XSLoader::load($VERSION); + __PACKAGE__->XSLoader::load($XS_VERSION); }; $@; };