our @a;
-tie @a, 'Scope::Upper::Test::TiedArray';
{
- local @a = (5 .. 7);
+ local @a;
+ tie @a, 'Scope::Upper::Test::TiedArray';
+ @a = (5 .. 7);
{
localize_elem '@a', 4 => 12 => HERE;
is_deeply \@a, [ 5 .. 7, undef, 12 ], 'localize_elem @incomplete_tied_array, $nonexistent, 12 => HERE [ok]';
our @a;
-tie @a, 'Scope::Upper::Test::TiedArray';
{
- local @a = (5 .. 7);
+ local @a;
+ tie @a, 'Scope::Upper::Test::TiedArray';
+ @a = (5 .. 7);
local $a[4] = 9;
is $deleted, undef, 'localize_delete @tied_array, $existent => HERE [not deleted]';
{
}
{
- local @a = (4 .. 6);
+ local @a;
+ tie @a, 'Scope::Upper::Test::TiedArray';
+ @a = (4 .. 6);
local $a[4] = 7;
{
localize_delete '@main::a', -1 => HERE;
{
skip '$NEGATIVE_INDICES has no special meaning on 5.8.0 and older' => 2 if $] < 5.008_001;
local $Scope::Upper::Test::TiedArray::NEGATIVE_INDICES = 1;
- local @a = (4 .. 6);
+ local @a;
+ tie @a, 'Scope::Upper::Test::TiedArray';
+ @a = (4 .. 6);
local $a[4] = 7;
{
localize_delete '@main::a', -1 => HERE;