Re: [Module::Build] version.pm and version number comparison problem
Status: Beta
Brought to you by:
kwilliams
|
From: Julian M. <ju...@me...> - 2006-02-02 18:18:19
|
Chris Dolan wrote:
> On Feb 2, 2006, at 8:06 AM, John Peacock wrote:
> > # Unbless it if it's a version.pm object
> > - $result =3D "$result" if UNIVERSAL::isa( $result, 'version' );
> > + $result =3D $result->numify if UNIVERSAL::isa( $result, 'version' );
>
> While we're at it, we should change the
> UNIVERSAL::isa( $result, 'version' )
> to
> eval { $result->isa('version') }
>
> See http://search.cpan.org/dist/UNIVERSAL-can/ for the
> justification. :-)
"This is wrong and you should not do it." -- What kind of justification is=
=20
that??
Why is it wrong to do UNIVERSAL::isa($foo, $type)? This usage is=20
documented in `perldoc UNIVERSAL`, and it works fine, after all.
|