in reply to hash compare

Test::Deep::NoTest is a good tool for comparing data structures.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name