On 9/25/07, Sébastien Aperghis-Tramoni <maddingue free.fr> wrote:
> Brandon Black wrote:
>
> > Near the end of import(), there's a call to
mro::method_changed_in(),
> > which is only going to work 5.9.5+. MRO::Compat
would give it to you
> > down to 5.6.0, but it looks like you want compat
back to 5.005. Now
> > that I stared at it for a minute, really that
whole area is suspect on
> > 5.8.x and earlier perls, as it uses the readonly
scalar reference
> > trick, which afaik is new. If you want a
dual-lifed version that
> > works on all 5.005+ Perls, you're going to need
more conditional code
> > to swap in the functionality of the older
constant.pm's.
>
> I had wondered about this myself, but then I saw in the
code that the
> calls to Internals::SvREADONLY() and
mro::method_changed_in() are
> protected by an if($symtab), and $symtab itself is only
affected if
> $] > 5.009002
>
> As a matter of facts, I didn't have to change anything
to make the code
> work on 5.6 and only handle the z/Z thing to make it
work on 5.005
> (and of course fix the tests).
>
Doh, I guess I missed that part, ignore me
-- Brandon
|