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

Re: [perl #42601] Inconsistent warning of redefined subroutines in Exporter

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
April 19, 2007 01:05
Subject:
Re: [perl #42601] Inconsistent warning of redefined subroutines in Exporter
Message ID:
b77c1dce0704190105h3fe20e52ue862837a32e4ed73@mail.gmail.com
On 18/04/07, via RT Colin Robertson <perlbug-followup@perl.org> wrote:
> Running "perl -we 'use Once;'" gives us no warnings, but running "perl
> -we 'use Once; use Twice;'" gives us:
>
> Subroutine Twice::foobar redefined at
> /usr/local/lib/perl5/5.8.7/Exporter.pm line 65.
>  at Twice.pm line 4
>
> Ideally, there should have been a warning just when compiling Once.

I get a warning with only Once.pm with perl 5.8.8 (and also bleadperl
and peprl 5.6.2). Not sure what has changed since 5.8.7...

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