What is a list reference?
What is an array?
...
What is a list?
Hi Juerd,
There was a thread on this not long ago. I forgot it's name.
Apo 2 said:
[1,2,3]
is syntactic sugar for something like:
scalar(list(1,2,3))
... suggesting that lists could have references taken to them, much
On Monday, March 15, 2004, at 11:05 , Larry Wall wrote:
On Mon, Mar 15, 2004 at 07:54:09PM -0700, Luke Palmer wrote:
Larry Wall writes:
And basically because I decided :foo('bar') is too ugly for something
that will get used as often as switches are on the unix command line.
The %hash syntax
My understanding of the semantic of pairs as in A6:
A pair in a given scalar context should return its first element
coerced to match the said context.
This seems to be a prerequisite to use pairs as function arguments.
Example with the boolean context:
bool $b = a = 10; # $b == 1