in reply to Test scalar refs (not values) in deeply nested structure
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Test scalar refs (not values) in deeply nested structure
by LanX (Saint) on Jul 23, 2020 at 19:58 UTC | |
by Corion (Patriarch) on Jul 23, 2020 at 20:21 UTC | |
by LanX (Saint) on Jul 23, 2020 at 20:31 UTC |