Bug#636124: Use of [which] uninitialized value?
Dominic Hargreaves
dom at earth.li
Sat Apr 2 10:43:42 UTC 2016
Control: found -1 5.22.1-9
Control: retitle -1 perl: loops prevent variables being mentioned in uninitizliaed value warnings
Control: tags -1 + confirmed upstream
On Sun, Jul 31, 2011 at 07:39:33PM +0800, jidanni at jidanni.org wrote:
> Package: perl
> Version: 5.12.4-2
> Severity: wishlist
> Tags: upstream
>
> There is no denying that perl could mention that it was $_ that was bothering it in
> $ perl -we 'print $_ for undef'
> Use of uninitialized value in print at -e line 1.
> And here too!:
> $ perl -we 'print for undef'
> Use of uninitialized value in print at -e line 1.
> https://groups.google.com/d/topic/comp.lang.perl.misc/JTpsJI6-glE/discussion
In particular
https://groups.google.com/d/msg/comp.lang.perl.misc/JTpsJI6-glE/ypEjIXie2AAJ
which notes the difference between
$ perl -we 'print $_'
Use of uninitialized value $_ in print at -e line 1.
and
$ perl -we 'print $_ for undef'
Use of uninitialized value in print at -e line 1.
More information about the Perl-maintainers
mailing list