in reply to (tye)Re: Scalars, Lists, and Arrays
in thread Scalars, Lists, and Arrays
The Perl documentation has two different things that both end up being casually called "list": "list values" and "list literals". A "list literal" is that comma-ish thing that turns into the comma operator in a scalar context (last value wins). A "list value" is the result from executing an operator in a list context. And yes, a list literal yields a list value in a list context, hence leading to the casual use of "list" for both.
In an ideal world, all naked "list" mentions would be expanded to either "list value" or "list literal" as appropriate. But most people generally figure it out by context (gah!) anyway.
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re3: Scalars, Lists, and Arrays
by tye (Sage) on Apr 13, 2001 at 20:39 UTC |
In Section
Seekers of Perl Wisdom