Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Exporter CPAN distribution.

Report information
The Basics
Id: 56611
Status: resolved
Priority: 0/
Queue: Exporter

People
Owner: Nobody in particular
Requestors: mcdave [...] stanford.edu
Cc:
AdminCc:

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



Subject: Sometimes, a package won't be an Exporter if @ISA is ordered wrong
Date: Wed, 14 Apr 2010 19:57:22 -0700 (PDT)
To: bug-Exporter [...] rt.cpan.org
From: David Tindall Mcmath <mcdave [...] stanford.edu>
The attached test.pl script produces the following output: -- McDaves-MacBook-Pro:~ mcdave$ perl test.pl It works It works Undefined subroutine &main::testbiz called at test.pl line 19. It works -- I expected it to write "It works" four times. With @ISA=qw(CGI Exporter), the exported function doesn't seem to get out into main. It's not the best style, but it happens to mirror the code where I actually noticed the problem first. I don't know whether it's a problem with Exporter or base. It seems odd that CGI and Class::DBI would have different behavior but I really don't know much about that sort of thing. Thanks for any help you can offer, dave

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #56611] AutoReply: Sometimes, a package won't be an Exporter if @ISA is ordered wrong
Date: Thu, 15 Apr 2010 15:59:23 -0500
To: bug-Exporter [...] rt.cpan.org
From: David McMath <mcdave [...] stanford.edu>
I now understand that, since CGI has its own "import" method, one should be more careful about the order of entries in the @ISA array. Since Class::DBI doesn't have that method (at least in the version I used), order doesn't matter so much. I guess this "bug" could be resolved just by rewriting the documentation somehow, but I'd be puzzled to figure out how to say it.
Exporter is maintained in perl's source code now. Future tickets should be opened with upstream via running perlbug.