in reply to Re^2: Pod: Need to parse from =begin ... =end blocks
in thread Pod: Need to parse from =begin ... =end blocks

Rather than our %begins, I'd suggest using %{$self->{_begins}}. Using a global hash would probably start to become annoying if you need to parse more than one pod document in a single run of the program.

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