App-TimeClock
view release on metacpan or search on metacpan
lib/App/TimeClock/Daily/PrinterInterface.pm view on Meta::CPAN
sub print_day { shift->_must_implement; };
=item print_footer()
Called once at the end of a report.
=cut
sub print_footer { shift->_must_implement; };
sub _must_implement {
(my $name = (caller(1))[3]) =~ s/^.*:://;
my ($filename, $line) = (caller(0))[1..2];
die "You must implement $name() method at $filename line $line";
}
1;
=back
=for text
=encoding utf-8
=end
lib/App/TimeClock/Weekly/PrinterInterface.pm view on Meta::CPAN
sub print_week { shift->_must_implement; };
=item print_footer()
Called once at the end of a report.
=cut
sub print_footer { shift->_must_implement; };
sub _must_implement {
(my $name = (caller(1))[3]) =~ s/^.*:://;
my ($filename, $line) = (caller(0))[1..2];
die "You must implement $name() method at $filename line $line";
}
1;
=back
=for text
=encoding utf-8
=end
( run in 0.633 second using v1.01-cache-2.11-cpan-26ccb49234f )