my @results; for ( @array ) { push @results, { input => $_, output => some_func($_) }; }