in reply to Re^3: Seeking Perl docs about how UTF8 flag propagates
in thread Seeking Perl docs about how UTF8 flag propagates
split returns a LIST, not an ARRAY.
It does not return a "LIST". There's no such data structure. As I said, it returns scalars, which is to say it adds scalars to the stack.
Colloquially, we do say it returns a list (of scalars). By that, we simply mean it returns (a number of) scalars.
Scalars is the only thing being returned. No list. No array.
(As for "LIST" spelled like that, the docs use this to refer to an expression evaluated in list context, such as the arguments to print. split most definitely does not return an expression.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Seeking Perl docs about how UTF8 flag propagates
by pryrt (Abbot) on May 18, 2023 at 20:29 UTC | |
by ikegami (Patriarch) on May 19, 2023 at 16:40 UTC |