Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^5: Seeking Perl docs about how UTF8 flag propagatesby pryrt (Abbot) |
on May 18, 2023 at 20:29 UTC ( [id://11152285]=note: print w/replies, xml ) | Need Help?? |
It does not return a "LIST". ... No list Colloquially or not, the documentation I referenced specifically states that split returns a list, and I quote: "Splits the string EXPR into a list of strings and returns the list in list context". As such, "list" is canonical terminology for what split returns in list context, until such time as it is removed from the docs. I will continue to maintain that split does return a list, your "No list." notwithstanding. If you are instead quibbling with my use of ALL CAPS to try to show it as a term, would you prefer I had said "list" (with "air-quote"-style quotes) instead? (In evidence of the fact that I was using ALL CAPS to be a term that I am trying to define, I also did the ALL CAPS for ARRAY, and that's not how the documentation refers to the data type, either.)
There's no such data structure. In my paragraph on LIST or "list" or however you want me to type "the concept of list in Perl documentation", I never once called it a "data structure" or "data type". Contrariwise, I very specifically called an ARRAY or "array" a "data type" (well, I typed "datatype", sorry) because that's what the docs call it. I was trying to help the O.P. differentiate concepts: the concept of the list construct (and with my link, obliquely to list context) compared to the concept of the array data type.
As for "LIST" spelled like that, the docs use this to refer to an expression evaluated in list context Can you point me to a document that makes this distinction? I was trying to see if they had a formal definition of LIST in all caps anywhere, but couldn't find it; the List value constructors was the only section that I could readily find that tries to define a "list" of any sort.
In Section
Seekers of Perl Wisdom
|
|