Oops, actually the latest is_deeply doesn't correctly handle _all_ circular
structures. If the circle includes a hash or an array it will work but if it
only includes scalar references then it will recurse indefinitely. I've
filed a bug report on rt. Test case below

use strict;
use warnings;

use Test::More 'no_plan';

my ($r, $s);

$r = \$r;
$s = \$s;

is_deeply($s, $r);

Fergal

On Sun, Jan 23, 2005 at 07:13:13PM +0000, Fergal Daly wrote:
> What version of Test::More? Only the most recent versions can handle
> circular data structures, so I'd guess you have a circular data structure
> and an older version,
> 
> Fergal

Reply via email to