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

[perl #133823] strict does not ban all barewords

Thread Previous | Thread Next
From:
Dan Book via RT
Date:
February 5, 2019 08:13
Subject:
[perl #133823] strict does not ban all barewords
Message ID:
rt-4.0.24-711-1549354423-1159.133823-15-0@perl.org
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.

-Dan


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=133823

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About