6 use Test::More tests => 4;
8 use Scope::Upper qw<uplevel HERE UP>;
16 uplevel { is $x, 3, 'global variables scoping 1' } HERE;
27 uplevel { is $x, 6, 'global variables scoping 2' } UP;
36 uplevel { is $1, 'x', 'match variables scoping 1' } HERE;
44 uplevel { is $1, 'x', 'match variables scoping 2' } UP;