in reply to Re^2: difference between array and list in perl
in thread difference between array and list in perl
This is - as usual - a definition conflict!
As I already pointed out there are (at least) two widespread interpretations of what "LIST" mean:
Take this example code:
perl -e 'print scalar ($a++,"b","c"), $a'
Following your explanation one might think that $a should never be incremented, since the "list" (the stack) is never built!
But actually one gets c1 as output, since the "list" (the sequence) is evaluated step by step
Cheers Rolf
UPDATE: shortened post
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: difference between array and list in perl
by JavaFan (Canon) on Jan 17, 2010 at 14:13 UTC |