On Sat, 2005-07-02 at 08:55 +0200, demerphq wrote: > The entire basis of computer science is based around the idea that if > you do the same operation to two items that are the same the end > result is the same. Without this there is no predictability. No > program could ever be expected to run the same way twice.
Throw in some sort of external state and you have exactly that. Perhaps the name of is_deeply() is misleading, but I don't understand why the argument about whether container identity should matter to the function is so important. I expect the following test to pass: my $a = \1; my $b = \1; is_deeply( $a, $b ); Should it not? The values are the same, as are the types of the containers, but the containers are different. -- c