Mention all variables in $undef..$undef warnings
authorFather Chrysostomos <sprout@cpan.org>
Thu, 13 Oct 2011 16:52:00 +0000 (09:52 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 13 Oct 2011 16:52:00 +0000 (09:52 -0700)
commit3c3231932f4011ce8d5169183dd6da374d5aa696
tree9b1c6025892b7c059ef0058b4287000613f2cfd0
parentf52e41ad9f6ea1eecc514a6c1d9e2ba332cef2be
Mention all variables in $undef..$undef warnings

Commit c774086b8 made this:

$ ./miniperl -lwe '()=my $undef1..my $undef2'
Use of uninitialized value in range (or flop) at -e line 1.
Use of uninitialized value in range (or flop) at -e line 1.

become this:

$ ./miniperl -lwe '()=my $undef1..my $undef2'
Use of uninitialized value $undef2 in range (or flop) at -e line 1.
Use of uninitialized value in range (or flop) at -e line 1.

which was slightly better.  This commit finishes the job:

$ ./miniperl -lwe '()=my $undef1..my $undef2'
Use of uninitialized value $undef1 in range (or flop) at -e line 1.
Use of uninitialized value $undef2 in range (or flop) at -e line 1.
pp_ctl.c
t/lib/warnings/9uninit