The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use Test::More qw(no_plan);
use strict;
use warnings;

use autobox::Core;

my %hash = ( foo => 1, bar => 2, baz => 3 );

my @glued;
%hash->each( sub { push @glued, $_[0] . $_[1] } );

is_deeply [ sort @glued ], [ qw(bar2 baz3 foo1) ];

my @array = values %hash;

my @added;
@array->each( sub { push @added, $_[0] + 1 } );

is_deeply [ sort @added ], [ qw(2 3 4) ];