in reply to Differ. array and List
But is there a difference between the terms "array context" and "list context", or are these terms used interchangably?
Ther perl function "wantarray" can distinguish between scalar and array contexts. If there is a difference between list and array context, I expect there should be an analogous way to distinguish these within code as well. Is there one?
FWIW, I did a meditation on context (scalar vs array) at Yet another List Versus Scalar Context Meditation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Differ. array and List
by tphyahoo (Vicar) on Apr 26, 2005 at 14:27 UTC | |
|
Re^2: Differ. array and List
by halley (Prior) on Apr 26, 2005 at 13:38 UTC | |
by Jasper (Chaplain) on Apr 26, 2005 at 15:57 UTC | |
by halley (Prior) on Apr 26, 2005 at 16:02 UTC | |
by Jasper (Chaplain) on Apr 27, 2005 at 12:15 UTC |