| 1 | 1 | ▶ | use 5.008; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package Data::Conveyor::YAML::Active::CurrentDateYYYYMMDD; | ||||||||||
| 6 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | $Data::Conveyor::YAML::Active::CurrentDateYYYYMMDD::VERSION = '1.103130'; | |||||||||
| 8 | } | ||||||||||
| 9 | # ABSTRACT: Stage-based conveyor-belt-like ticket handling system | ||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | use YAML::Active qw/assert_hashref hash_activate/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 1 | ▶ | use parent 'Class::Scaffold::YAML::Active'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | sub yaml_activate { | ||||||||
|
Subroutine
yaml_activate: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||
| 15 | 0 | my ($self, $phase) = @_; | |||||||||
| 16 | 0 | assert_hashref($self); | |||||||||
| 17 | 0 | my $hash = hash_activate($self, $phase); | |||||||||
| 18 | 0 | ▶ | my ($y, $m, $d) = sub { $_[5] + 1900, $_[4] + 1, $_[3] } | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 19 | 0 | ->(localtime); | |||||||||
| 20 | 0 | ▶ | exists $hash->{year} and $y += $hash->{year}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 0 | ▶ | exists $hash->{month} and $m += $hash->{month}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 0 | ▶ | exists $hash->{day} and $d += $hash->{day}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | sprintf "%4d%02d%02d", $y, $m, $d; | |||||||||
| 24 | } | ||||||||||
| 25 | 1 | 1; | |||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | __END__ | ||||||||||