# New Ticket Created by  Zefram 
# Please include the string:  [perl #128399]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128399 >


> my @a = 22,33
[22 33]
> @a[0]
22
> @a[1]
33
> @a[0].VAR.WHICH
Scalar|100414504
> @a[1].VAR.WHICH
Scalar|100414504
> @a[0].VAR === @a[1].VAR
True

Behaviourally the two scalar objects are clearly distinct, as they
should be.  .WHICH errs in advertising the same identity for both, and ===
follows suit in saying that they are identical.  All scalar containers
created for a single array get this treatment, even ones created later
by pushing more elements onto the array.  Scalars created separately,
for other arrays or for standalone scalar variables, correctly get
different identities shown by .WHICH.

-zefram

Reply via email to