The Test::More documentation says for is_deeply:
is_deeply() compares the dereferenced values of references, the references themselves (except for their type) are ignored.
... so I'm not sure what you expect.
If you want to compare the identity of the references too, you will need to write your own comparison tool, but I guess that a simple shallow comparison already is enough for that case.
In reply to Re: Test scalar refs (not values) in deeply nested structure
by Corion
in thread Test scalar refs (not values) in deeply nested structure
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |