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

Re: Perl 5.16.0 RC0

Thread Previous | Thread Next
From:
Zefram
Date:
May 11, 2012 06:12
Subject:
Re: Perl 5.16.0 RC0
Message ID:
20120511131209.GH21563@lake.fysh.org
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.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About