develooper Front page | perl.perl5.porters | Postings from March 2007

Exporter Warning Mystery

Thread Next
From:
Nicholas Clark
Date:
March 9, 2007 09:55
Subject:
Exporter Warning Mystery
Message ID:
20070309175524.GT5748@plum.flirble.org
This makes no sense to me:

$ cat E.pl 
#!perl -w
use Exporter;
BEGIN {
    package Testing::Unused::Vars;
    @ISA = qw(Exporter);
    @EXPORT = qw(this $TODO that);

    package Foo;
    Testing::Unused::Vars->import;
}
__END__
$ ./perl -Ilib E.pl 
Name "Testing::Unused::Vars::TODO" used only once: possible typo at lib/Exporter/Heavy.pm line 205.
$ ./perl E.pl 
$


Why does it warn if it's reading its libraries from the build tree, but not
when they're installed?

Same for blead, maint and release 5.8.8

Nicholas Clark

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