I missed the parenthesization approach of ikegami and LanX, but my personal preference (after moritz's approach, of course) would be "@{[ ... code ... ]}" temporary array interpolation. This is probably more expensive computationally, but it appeals to me as 'cleaner' code.