Skip Menu |

This queue is for tickets about the Exporter-NoWork CPAN distribution.

Report information
The Basics
Id: 33595
Status: resolved
Priority: 0/
Queue: Exporter-NoWork

People
Owner: Nobody in particular
Requestors: ovid [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.01
Fixed in: (no value)



Subject: Exporter::NoWork doesn't check ISA before it adds itself
The import method has the following code: if ($from eq __PACKAGE__) { push @{"$to\::ISA"}, __PACKAGE__; Regrettably, sometimes other modules are written poorly and get loaded multiple times, so Exporter::NoWork adds itself to @ISA multiple times. Changing to the following avoids this problem: if ($from eq __PACKAGE__) { push @{"$to\::ISA"}, __PACKAGE__ unless grep { $_ eq __PACKAGE__ } @{"$to\::ISA"}; Cheers, Ovid
Thank you for the report. 0.02 just uploaded to CPAN should fix the problem. Ben