my @y = map { ... } @x; #### my @anon; for (@x) { push @anon, do { ... }; } my @y = @anon;