Acme-Songmu
view release on metacpan or search on metacpan
lib/Acme/Songmu.pm view on Meta::CPAN
age => sub {
int(
(Time::Piece->localtime->strftime('%Y%m%d') -
shift->birthday->strftime('%Y%m%d')
) / 10000)
},
},
);
sub instance {
state $_instance = bless {
birthday => Time::Piece->strptime('1980-06-05', '%Y-%m-%d'),
first_name => 'Masayuki',
last_name => 'Matsuki',
}, __PACKAGE__;
}
sub name {
my $self = shift;
sprintf '%s %s', $self->first_name, $self->last_name;
}
( run in 1.016 second using v1.01-cache-2.11-cpan-de7293f3b23 )