The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use Test::Base tests => 10;

for (1..2) {
    is next_block->foo, 'This is foo';
    is next_block->bar, 'This is bar';

    while (my $block = next_block) {
        pass;
    }
}

__DATA__
=== One
--- foo chomp
This is foo
=== Two
--- bar chomp
This is bar
=== Three
=== Four
=== Five