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


in reply to Re: Hope a subroutine will return undef by default
in thread Hope a subroutine will return undef by default

I'm starting to prefer simply adding this to the end of the sub:

();
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name