# New Ticket Created by Sam S.
# Please include the string: [perl #130954]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=130954 >
my $x = 42;
my $c1 = \($x);
my $c2 = \(42);
say $c1 eqv $c2; # True
say $c1 === $c2; # True
say $c1.WHICH; # Capture|(Int|42)
say $c2.WHICH; # Capture|(Int|42)
Since the two captures in this example are not identical behavior-wise
(e.g. $c1 could be bound to the signature `$foo is rw` but $c2 can't),
their `.WHICH` and `===` shouldn't consider them identical either,
right?
`eqv` returning `True` seems appropriate though, as it does the same for Lists:
my $l1 = ($x,);
my $l2 = (42,);
say $l1 eqv $l2; # True
say $l1 === $l2; # False
say $l1.WHICH; # List|62518880
say $l2.WHICH; # List|62518928