Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 28004
Status: resolved
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: David.Gregory [...] intecbilling.com
Cc:
AdminCc:

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



Subject: '"import" is not exported by the Exporter module' error when running perlcritic on Perl 5.8.1
Date: Fri, 6 Jul 2007 13:40:48 +1000
To: <bug-Perl-Critic [...] rt.cpan.org>
From: "David Gregory" <David.Gregory [...] intecbilling.com>
Perl::Critic Version = 1.06 Perl Version = 64 bit 5.8.1 for HP-UX 11.23 on Itanium perl -V Output = Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration: Platform: osname=hpux, osvers=11.22, archname=IA64.ARCHREV_0-LP64 uname -a Output: HP-UX <host> B.11.23 U ia64 2102037814 unlimited-user license I get the following error when running perlcritic after upgrading from 0.17 to 1.06 "import" is not exported by the Exporter module Can't continue after import errors at /opt/perl/lib/site_perl/5.8.1/Perl/Critic/Theme.pm line 15 BEGIN failed--compilation aborted at /opt/perl/lib/site_perl/5.8.1/Perl/Critic/Theme.pm line 15. Compilation failed in require at /opt/perl/lib/site_perl/5.8.1/Perl/Critic/Config.pm line 20. BEGIN failed--compilation aborted at /opt/perl/lib/site_perl/5.8.1/Perl/Critic/Config.pm line 20. Compilation failed in require at /opt/perl/lib/site_perl/5.8.1/Perl/Critic.pm line 18. BEGIN failed--compilation aborted at /opt/perl/lib/site_perl/5.8.1/Perl/Critic.pm line 18. Compilation failed in require at /opt/perl/bin/perlcritic line 190. It appears as though the new Theme system introduced around version 1.0 assumes the use of the latest Exporter which allows the 'use Exporter qw{ import }' construct. Older Exporter versions do not allow this. I have worked around this by changing Perl::Critic::Theme to use the older method of using Exporter. #use Exporter qw{ import }; require Exporter; our @ISA = qw(Exporter); This e-mail and any attachments are confidential and may also be legally privileged and/or copyright material of Intec Telecom Systems PLC (or its affiliated companies). If you are not an intended or authorised recipient of this e-mail or have received it in error, please delete it immediately and notify the sender by e-mail. In such a case, reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Intec Telecom Systems PLC does not represent or warrant that an attachment hereto is free from computer viruses or other defects. The opinions expressed in this e-mail and any attachments may be those of the author and are not necessarily those of Intec Telecom Systems PLC.
Subject: Re: [rt.cpan.org #28004] '"import" is not exported by the Exporter module' error when running perlcritic on Perl 5.8.1
Date: Thu, 5 Jul 2007 21:00:05 -0700 (PDT)
To: bug-Perl-Critic [...] rt.cpan.org
From: Jeffrey Thalhammer <jeffrey_thalhammer [...] yahoo.com>
Hmmm, tell me if this works with your Exporter: use base qw(Exporter); -Jeff Show quoted text
____________________________________________________________________________________ Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/
Subject: RE: [rt.cpan.org #28004] '"import" is not exported by the Exporter module' error when running perlcritic on Perl 5.8.1
Date: Fri, 6 Jul 2007 14:06:15 +1000
To: <bug-Perl-Critic [...] rt.cpan.org>
From: "David Gregory" <David.Gregory [...] intecbilling.com>
Yep. Works fine. It should work back to at least Perl 5.005 since it is basically the same as populating @ISA. Show quoted text
-----Original Message----- From: Jeffrey Thalhammer via RT [mailto:bug-Perl-Critic@rt.cpan.org] Sent: Friday, 6 July 2007 2:01 PM To: David Gregory Subject: Re: [rt.cpan.org #28004] '"import" is not exported by the Exporter module' error when running perlcritic on Perl 5.8.1 <URL: http://rt.cpan.org/Ticket/Display.html?id=28004 > Hmmm, tell me if this works with your Exporter: use base qw(Exporter); -Jeff
____________________________________________________________________________________ Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/ This e-mail and any attachments are confidential and may also be legally privileged and/or copyright material of Intec Telecom Systems PLC (or its affiliated companies). If you are not an intended or authorised recipient of this e-mail or have received it in error, please delete it immediately and notify the sender by e-mail. In such a case, reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Intec Telecom Systems PLC does not represent or warrant that an attachment hereto is free from computer viruses or other defects. The opinions expressed in this e-mail and any attachments may be those of the author and are not necessarily those of Intec Telecom Systems PLC.
From: ELLIOTJS [...] cpan.org
This problem was fixed as of Perl::Critic 1.061.
This was fixed in version 1.061