![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
It's clear to me by this point that the word "list" has no real precise definition in perl, whereas the word "array" does.
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. In reply to Re: Differ. array and List
by tphyahoo
|
|