develooper Front page | perl.perl5.porters | Postings from September 2012

[perl #88754] Perl produces silly and repetitive warnings for nonexistent packages in @ISA

Thread Previous
From:
James E Keenan via RT
Date:
September 25, 2012 20:13
Subject:
[perl #88754] Perl produces silly and repetitive warnings for nonexistent packages in @ISA
Message ID:
rt-3.6.HEAD-11172-1348629219-1894.88754-15-0@perl.org
On Sun Apr 17 08:24:41 2011, demerphq wrote:
> This is a bug report for perl from demerphq@gmail.com,
> generated with the help of perlbug 1.39 running under perl 5.14.0.
> 
> 
> -----------------------------------------------------------------
> If @ISA contains an unknown package name then we get lots of repetitve
> and strange warnings:
> 
> $ ./perl -Ilib -wle'@Y::ISA=qw( Z ); @X::ISA=qw( Y ); print
> UNIVERSAL::isa(bless([],"X"),"Z")'
> Can't locate package Z for @X::ISA at -e line 1.
> Can't locate package Z for @X::ISA at -e line 1.
> Can't locate package Z for @X::ISA at -e line 1.
> 1
> 
> On one older perl (5.8.9) this throws a different set of warnings,
> including one additional warning and returns FALSE:
> 
> $ perl -wle'@Y::ISA=qw( Z ); @X::ISA=qw( Y ); print
> UNIVERSAL::isa(bless([],"X"),"Z")'
> Can't locate package Z for @Y::ISA at -e line 1.
> 
> Can't locate package Z for @Y::ISA.
> Can't locate package Z for @Y::ISA.
> Can't locate package Z for @Y::ISA.
> 
> On blead we get the warnings, but at least the correct result.
> 
> I don't think this should warn at all.

What should be the desired behavior?

Thank you very much.
Jim Keenan



---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=88754

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About