Think about Loose Coupling | |
PerlMonks |
Re: array and list return different things in scalar contextby Errto (Vicar) |
on Mar 11, 2008 at 20:37 UTC ( [id://673611]=note: print w/replies, xml ) | Need Help?? |
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
|
|