print map { ...1... } ...2...; #### @temp_list = map { ...1... } ...2...; print @temp_list; #### print ...1... foreach ...2...;