in reply to Re^4: Moose and default values
in thread Moose and default values
It's nice (and only 10 lines of code :-=).
But say I now wanted not only undefs but everything that is false (e.g. also an empty string) to trigger the default?
Does Moose not have any mechanics for that?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Moose and default values
by tobyink (Canon) on Feb 20, 2013 at 22:54 UTC | |
by morgon (Priest) on Feb 20, 2013 at 23:02 UTC | |
by tobyink (Canon) on Feb 20, 2013 at 23:15 UTC | |
by morgon (Priest) on Feb 20, 2013 at 23:28 UTC | |
by tobyink (Canon) on Feb 20, 2013 at 23:54 UTC |
In Section
Seekers of Perl Wisdom