1,2,3 is a list literal aka list operator. It may evaluate to a list of its items or to its last item.
@xyz is an array. As an operator, it may evaluate to a list of its elements or to its number of elements.
But the problems is, is that this confuses folks.
That's to be expected. "An array with a list" makes no sense. Arrays have elements, not lists.
How is the incorrect "@xyz is a list" any simpler than the correct "@xyz is an array"? "List" is already overloaded enough. You're doing yourself and your readers a disservice by calling arrays lists.
In reply to Re^6: Perl vs C
by ikegami
in thread Perl vs C
by santhosh_89
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |