in reply to Nothing is happening in my CGI code.

This sub seems to be missing its closing }...

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