http://www.perlmonks.org?node_id=1023791


in reply to Re^2: Localizing hash keys in an AoH
in thread Localizing hash keys in an AoH

It could be made more readable. Defining entire packages within a sub is a trick I'm fond of, but I'm aware it's not everybody's cup of tea.

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