in reply to array and list return different things in scalar context
in thread How can I access the number of repititions in a regex?
This isn't a "list in scalar context", it's a list assignment in scalar context, which has a very well-defined behavior: it returns the number of elements in the list on the right side of the assignment operator.
|
---|
In Section
Seekers of Perl Wisdom