There is a lie that a list in scalar context yields the last element of the list. This is a lie because (as the saying goes) you can\'t have a list in scalar context. What
It's more like a valueless expression which is equivalent to undef. Some more examples:
$ perl -we 'print scalar( () )'
Use of uninitialized value in print at -e line 1.
$ perl -we 'print 0+()'
Use of uninitialized value in addition (+) at -e line 1.