Larry Wall wrote:

<snip>

: >You seem to agree with this in the later array interpolation section where
: >"@(1, 2)" becomes
: >12
: >instead of
: >1 2
: >
: >Does a list still return its last element in scalar context? I thought I
: >remembered something about that changing?
: >
: : I think you may be right, but thats how P6C behaves.
: Time to send another bug to RT :)

A list in scalar context always returns a reference to the list.
That is, it assumes [...] around it. You have to use ...[-1] to get
the last element of a list.

So how should this behave:

print "$('one','two','three')"


Larry





Reply via email to