| 1 | package Date::Time::UnixTime; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | # Some methods dealing with Unix timestamps are to be implemented here. | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 1 | 1; | |||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | package Date::Time; | ||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 1 | ▶ | use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 1 | require AutoLoader; | |||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 1 | @ISA = qw(AutoLoader); | |||||||||||||||||||
| 15 | 1 | $VERSION = '0.01'; | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 18 | # Class identification: | ||||||||||||||||||||
| 19 | 0 | ▶ | my $object_or_class = shift; my $class = ref($object_or_class) || $object_or_class; | ||||||||||||||||||
|
Condition0%0/3
ref $object_or_class || $object_or_class
MC/DC0%0/2
ref $object_or_class || $object_or_class
ref $object_or_class
$object_or_class
Truth table0%0/3
A || B
A= ref $object_or_classB= $object_or_class
| |||||||||||||||||||||
| 20 | 0 | my $self={}; bless $self, $class; | |||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | } | ||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 1 | 1; | |||||||||||||||||||
| 27 | __END__ | ||||||||||||||||||||