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
In Section
Seekers of Perl Wisdom