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

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

From:
Dan Dascalescu
Date:
August 15, 2009 01:25
Subject:
[perl #68534] Enhancement: which *expression* (not just scalar) was uninitialized in eq
Message ID:
rt-3.6.HEAD-2466-1250306403-1171.68534-75-0@perl.org
# New Ticket Created by  Dan Dascalescu 
# Please include the string:  [perl #68534]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=68534 >


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



      




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