in reply to tr doesn't *really* use a list
On the other hand, it is certainly inaccurate to say that a list in Perl is an anonymous array. Although this code features a list: print "Hello ", $name, ", how are you?"; it does not feature an anonymous array.
I would say that a list in Perl is any grouping of scalars (including groupings of zero or one scalar) on the stack. An array is a list of scalars for which memory has been allocated especially (outside the stack), and an anonymous array is an array where there is no symbol name that refers to the array's memory.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re2: tr doesn't *really* use a list
by tye (Sage) on Dec 28, 2000 at 00:05 UTC | |
by chipmunk (Parson) on Dec 28, 2000 at 00:23 UTC | |
by tye (Sage) on Dec 28, 2000 at 00:56 UTC |