![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re^2: Date functionby tobyink (Canon) |
on Aug 03, 2013 at 14:54 UTC ( #1047714=note: print w/replies, xml ) | Need Help?? |
A reasonable approach, though if you live somewhere that observes daylight savings, it will produce incorrect results for one hour, twice each year.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|