@result = map SOME_EXPRESSION, @input; #### @TEMP = (); foreach $_ (@input) { push @TEMP, SOME_EXPRESSION; } @result = @TEMP;