Bug#929305: Stop users from attempting @x[$y .. -1]
積丹尼 Dan Jacobson
jidanni at jidanni.org
Tue May 21 11:03:03 BST 2019
Package: perl-doc
Version: 5.28.1-6
Severity: wishlist
File: /usr/share/man/man1/perldata.1.gz
Change:
< ($him, $her) = @folks[0,-1]; # array slice
< @them = @folks[0 .. 3]; # array slice
To:
> ($him, $her) = @folks[0,-1]; # array slice
> @them = @folks[0 .. $#folks]; # array slice, same as @folks
Anyway, you need to stop users from trying @folks[ xxx .. -1].
More information about the Perl-maintainers
mailing list