On Thu, Dec 13, 2001 at 12:12:14PM -0500, Ted Ashton wrote:
> Thus it was written in the epistle of Piers Cawley,
> > In the following code fragment, what context is foo() in?
> >
> > @ary[0] = foo()
>
> Scalar, I would think.
I assume that the following would make the assignment a slice
and therefore put foo() in list context:
@i = (0);
@ary[@i] = foo();
How could one get that behavior without the intermediate array?
Would one of the following work?
@ary[(0)] = foo();
@ary[0,] = foo();
@ary[0,0] = foo();
@ary[0,0] = list(foo());
--
Mark J. REED <[EMAIL PROTECTED]>