The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!perl -w

use strict;
use Test::More tests => 1;

use Tie::Array;
use B::Foreach::Iterator;

my @next;
tie my @ary, 'Tie::StdArray';

@ary = (11 .. 15);
foreach (@ary){
	push @next, iter->peek;
}

is_deeply \@next, [12 .. 15, undef] or diag "[@next]";