One more thought on this: the first edition of Programming Perl used the term LIST in some places, such as the documentation of builtin functions, but it did not use the term list context; it used array context instead. (A relic of this usage remains in the name of the builtin wantarray.) To me this suggests that Larry himself was unclear, or at least ambivalent, about how list context should be defined. If this was so, then it's no wonder that Perl still harbors some "semantic traps" around this topic.
the lowliest monk
In reply to Re: Some Insights from a Traveler Between Languages
by tlm
in thread Some Insights from a Traveler Between Languages
by skyknight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |