|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^4: Perl vs Cby ikegami (Patriarch) |
| on Mar 14, 2009 at 17:41 UTC ( [id://750636]=note: print w/replies, xml ) | Need Help?? |
|
When someone talks of lists in Perl, they are usually talking about one of the following:
There is also "list context", a context in which expressions can be evaluated. In contrast, an array is a type of variable. There is no list variable type. I'd be hard pressed to find similarities between list values, list operators, list context and array variables because values, operators, contexts and variables are fundamentally different from each other. It's not just nomenclature.
A Perl array is similar to T* array in C, except it automatically resizes itself when needed (like C++'s std::vector). Due to C's type system, C doesn't have anything similar to Perl lists. (Same goes for C++.)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||