Bug#716738: so many opportunities to say what variable in error messages but it doesn't

jidanni at jidanni.org jidanni at jidanni.org
Fri Jul 12 02:18:52 UTC 2013


Package: perl
Version: 5.14.2-20
Severity: wishlist

More cases of bad warning messages.
$ perl -we 'undef $a, $b; if($a{r} < $b){}'
Useless use of a variable in void context at -e line 1.

Why can't it say which variable please?

Would it be that much skin off perl's back to name what it is talking
about?

Use of uninitialized value $b in numeric lt (<) at -e line 1.
Use of uninitialized value in numeric lt (<) at -e line 1.

Why can't it say which variable please?

What's so different between $a{r} and $b that one is left guessing?




More information about the Perl-maintainers mailing list