when used in a scalar context. A list returns the last item in a list.

Lots of different types of lists return lots of different things in scalar contexts. The most common behavior is to return the last item.

        - tye (but my friends call me "Tye")

In reply to (tye)Re2: List context or not? by tye
in thread List context or not? by sguazt

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":