develooper Front page | perl.perl5.porters | Postings from February 2019

[perl #133823] strict does not ban all barewords

Thread Previous | Thread Next
Dan Book via RT
February 5, 2019 08:13
[perl #133823] strict does not ban all barewords
Message ID:
On Mon, 04 Feb 2019 21:09:43 -0800, tonyc wrote:
> sort specially allows for a bareword subname for the sort sub and dies
> at runtime if the sub named doesn't exist, even if the sub doesn't
> need to be called:
> $ ./perl -Ilib -e 'use strict; my @list; print sort FOO @list; '
> Undefined sort subroutine "main::FOO" called at -e line 1.

Not entirely true. See #36333, #130178, #133138.


via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About