On Sat, Sep 08, 2007 at 01:48:39PM +0100, Nicholas Clark wrote: > Have I got this correct? > > state @a = foo(); # Implicit START block around call and initialisation > state (@a) = foo(); # Implicit START block around call and > initialisation > (state @a) = foo(); # foo() called every time, assignment every time
Um. That seemed to scare everyone away. If it's rephrased like this: my @a = foo(); # What context is foo called in? my (@a) = foo(); # What context is foo called in? Is it the same? (my @a) = foo(); # What context is foo called in? Is it the same? Are the three calls in the same context? Or two (or even three) different contexts? Nicholas Clark