In scalar context "@list" evaluates to the number of elements in @list.
I had to view source to see that your quotation marks were outside your code tags. A casual reader might have thought you meant
In scalar context "@list" evaluates to the number of elements in @list.
which would have been incorrect, since in scalar context "@list" (quotes in the expression) evaluates to
malay manab milan anand
In reply to Re^2: scalar context confusion
by Narveson
in thread scalar context confusion
by perlplayer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |