in reply to Re: Why does 'print shift sort @array' not work?
in thread Why does 'print shift sort @array' not work?
"A list is an ordered collection of scalars. An array is a variable that contains a list. In Perl, the two terms are often used as if they're interchangeable. But, to be accurate, the list is the data, and the array is the variable."With shift operating on an array and returning a list, all is clear now. Thanks again to all of you who contributed to the clarification.
|
|---|