develooper Front page | perl.perl5.porters | Postings from May 2012

Re: Perl 5.16.0 RC0

Thread Previous | Thread Next
May 11, 2012 06:12
Re: Perl 5.16.0 RC0
Message ID:
I wrote:
>I'm getting some "Subroutine redefined" warnings from a non-CPAN module,
>which didn't occur with 5.14.2

The warnings show up if I XSLoader::load() an XS module more than once.
Can reproduce it perfectly well with a CPAN XS module, if I manually do
the XSLoader::load().  Doesn't occur in 5.14.2.  I'm not clear on what's
meant to happen here: who is responsible for making sure a module's BOOT
section only runs once?  I guess the CPAN smokes won't have caught if
this affects anything on CPAN, since it's only a warning.

Anyway, I can certainly fix it for this module by adding guards to the
multiple load() calls.  I already have such guards in XML-Easy, which
would otherwise exhibit this problem.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About