6
# $was_in_second_end_block is a package variable, not a lexical one, per S04:
8
# Some closures produce C<Code> objects at compile time that cannot be
9
# cloned, because they're not attached to any runtime code that can
10
# actually clone them. C<BEGIN>, C<CHECK>, C<INIT>, and C<END> blocks
11
# fall into this category... It's only safe to refer to package
12
# variables and file-scoped lexicals from such a routine.
15
our $Main::was_in_second_end_block = 0;
18
if $Main::was_in_second_end_block {
26
$Main::was_in_second_end_block = 1;