Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 2470
Status: resolved
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] ExtUtils::MM_Unix::parse_version
ExtUtils::MM_Unix::parse_version croaks with an error if a file contains a line of the form $AnotherModule::VERSION == ... $AnotherModule::VERSION != ... $AnotherModule::VERSION <= ... $AnotherModule::VERSION >= ... before the module's $VERSION definition. Below a patch with a slightly changed regex for parse_version and new tests. Regards, Slaven
Download mmbug
application/octet-stream 1.5k

Message body not shown because it is not plain text.

Held for consideration after next stable version.
Looks like this was fixed a while ago, at least the croaking part. Rather than continue to make a more and more convoluted regex, parse_version() now will simply keep trying until it gets something other than undef. So now this works. $Some::VERSION == 1.0; $VERSION = 2.3;