develooper Front page | perl.perl5.porters | Postings from August 2013

[perl #68534] Enhancement: which *expression* (not just scalar) was uninitialized in eq

Thread Next
From:
James E Keenan via RT
Date:
August 8, 2013 23:25
Subject:
[perl #68534] Enhancement: which *expression* (not just scalar) was uninitialized in eq
Message ID:
rt-3.6.HEAD-2552-1376004329-380.68534-15-0@perl.org
On Fri Aug 14 20:20:03 2009, dandv wrote:
> perl 5.10.0:
> 
> $ perl -we 'my $x; print $x == 1'
> Use of uninitialized value $x in numeric eq (==) at -e line 1.
> 
> $ perl -we 'my $x; print $x->{foo} == 1'
> Use of uninitialized value in numeric eq (==) at -e line 1.
> 
> Same for string eq.
> 
> --
> Dan Dascalescu (dandv)
> http://wiki.dandascalescu.com/.list/Perl
> 
> 

This request was placed on the wishlist before Perl 5.12.0.  Is this
something we would be willing to consider?

If so, would someone be willing to take it on?  (Hint:
Perl_report_uninit in sv.c looks relevant.)

Thank you very much.
Jim Keenan

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

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