Re: [Module::Build] version.pm and version number comparison problem
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2006-02-03 04:11:08
|
On Feb 2, 2006, at 8:06 AM, John Peacock wrote:
> However, happily, I have a solution (diff vs. Module-Build-0.27_07):
>
> --- lib/Module/Build/ModuleInfo.pm.orig 2006-02-02 08:46:21.000000000
> -0500
> +++ lib/Module/Build/ModuleInfo.pm 2006-02-02 08:59:23.000000000
> -0500
> @@ -299,7 +299,7 @@ sub _evaluate_version_line {
> warn "Error evaling version line '$eval' in $self->{filename}:
> $@\n" if $@;
>
> # Unbless it if it's a version.pm object
> - $result = "$result" if UNIVERSAL::isa( $result, 'version' );
> + $result = $result->numify if UNIVERSAL::isa( $result, 'version' );
>
> return $result;
> }
That was awfully easy. I wonder why we didn't think of this before. =)
I'll apply.
-Ken
|