Lists
Explore how Perl handles lists as comma-separated expressions and the difference between lists and arrays. Understand the use of empty lists, scalar and list context, and idiomatic ways to count list elements without temporary variables.
We'll cover the following...
Empty list
When used on the right-hand side of an assignment, the () construct represents
an empty list. In scalar context, this evaluates to undef. In list context, it’s an empty list. When used on the left-hand side of an assignment, the () construct imposes list context, hence this
Because of the right ...