in reply to Re^3: difference between array and list in perl
in thread difference between array and list in perl
the realization for passing theses values at run time through an internal stackDon't confuse implementation (perl) with the language (Perl)! Otherwise, you'd have to start claiming Perl has pointers!
perl -e 'print scalar ($a++,"b","c"), $a'Bollocks! What you have here is the scalar comma operator. From perlop:Following your explanation one might think that $a should never be incremented, since the "list" (the stack) is never built!
Binary "," is the comma operator. In scalar context it evaluates its left argument, throws that value away, then evaluates its right argument and returns that value. This is just like C’s comma operator.
|
|---|