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


in reply to Re: Print to Browser Headers Not Working
in thread Print to Browser Headers Not Working

In particular I suspect the OP isn't accessing the script through an HTTP server at all, but perhaps saving the script output to a file and opening it.

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