in reply to Do you consider these different or the same?

print "@$ar1\n@$ar2\n";
produces:
HASH(0x224fc8) HASH(0x224fc8) HASH(0x22507c) HASH(0x225088)
so deep copies they are not.

Replies are listed 'Best First'.
Re^2: Do you consider these different or the same?
by brian_d_foy (Abbot) on Jul 01, 2005 at 18:03 UTC

    Although "deep copy" shows up in the original post, I think it's misplaced. The is_deeply docs don't say anything about testing whether or not they are deep copies. The other things in Test::More check for the same values, not the same references, and that's what I expect is_deeply to do, and for the "deeply" only to denote its descent into references to get their values.

    --
    brian d foy <brian@stonehenge.com>