On Sun, Sep 14, 2008 at 01:59:22PM -0700, Michael G Schwern wrote: > Eric Wilhelm asked me to chime in here. > > is_deeply() is about checking that two structures contain the same values. > This is different from checking that they're the same *things*, that they are > in fact the same object or reference. > > You need both. > [...]
Since it wasn't explicitly mentioned in Schwern's post, I'll add that Perl 6 uses infix:<===> for checking identity, as in "Are these two things the same object or reference?" my $a = [1,2,3]; my $b = [1,2,3]; $a eqv $b # True $a === $b # False Pm