-my $b = $a;
-is($c, 1, 'get : assign to');
-is($b, $n, 'get : assign to correctly');
+my $b;
+# $b has to be set inside the block for the test to pass on 5.8.3 and lower
+check { $b = $a } { get => 1 }, 'assign to';
+is $b, $n, 'get: assign to correctly';