[NUUG fiksgatami] [patch] Fix for strange perl error (Was: Stuck setting up our fixmystreet copy - strange error)
Matthew Somerville
matthew at mysociety.org
Tue Jan 13 18:08:46 CET 2009
Petter Reinholdtsen wrote:
> It sure look like it, yeah. Or something similar.
It appears that fields::new() has always blessed the object into the
class provided; prior to 5.9, it would be a pseudo hash, which can
presumably be blessed again, whereas in 5.9/10, it's a restricted hash,
and that must make the difference somehow. I'm not sure why our code
performed another bless() - I'm guessing something to do with
inheritance that isn't really relevant here.
I've rewritten the function more per the Perl documentation, so it
should hopefully be okay on both versions of Perl now.
ATB,
Matthew
More information about the fiksgatami
mailing list