[perl #117607] TODO test for \&CORE::lc in error context
authorTony Cook <tony@develop-help.com>
Thu, 25 Apr 2013 08:10:10 +0000 (18:10 +1000)
committerTony Cook <tony@develop-help.com>
Fri, 26 Apr 2013 01:56:40 +0000 (11:56 +1000)
commit83d52ea4d1c8dd691ed020eab0642880164a91fe
treef91264f50b5704f7ca0d33494e59a461bfffdcdb
parentfeff7485ae0da6a0fe00f976c4294583b5c11dc9
[perl #117607] TODO test for \&CORE::lc in error context

The original sample was:

BEGIN {
$^H |= 0x00000400; # strict vars
}
# Undeclared variable here
sub foo { return $anyvar; }
# Any CORE:: here
sub bar { \&CORE::lc }

simplified to:

BEGIN {
$^H |= 0x00000400; # strict vars
}
$anyvar;
&CORE::lc;

but it occurs for any compile-time error that doesn't abort compilation,
such as:

$foo/; \&CORE::lc
t/op/coresubs.t