Best, beth
Update struck out push and pop. Pop needs an actual array, not just a list e.g. pop @x or pop @$y as noted by jwkrahn below. The same applies to the first parameter of push as well. This is because both modify the contents of an address in memory rather than simply process a set of elements in sequence.
In reply to Re: Scalar Vs. List context
by ELISHEVA
in thread Scalar Vs. List context
by biohisham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |