| 1 | package Data::TreeValidator::Transformations; | ||||||||||
| 2 | { | ||||||||||
| 3 | 1 | $Data::TreeValidator::Transformations::VERSION = '0.04'; | |||||||||
| 4 | } | ||||||||||
| 5 | # ABSTRACT: Common data transformations | ||||||||||
| 6 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | use Sub::Exporter -setup => { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | exports => [qw( boolean )], | ||||||||||
| 11 | 1 | }; | |||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | sub boolean { \&_boolean } | ||||||||
|
Subroutine
boolean: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 14 | 3 | ▶ | sub _boolean { | ||||||||
|
Subroutine
_boolean: called CC=2 SCAR=6.9
| |||||||||||
| 15 | 3 | my ($input) = @_; | |||||||||
| 16 | 3 | ▶ | return $input ? 1 : 0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 1 | 1; | |||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | __END__ | ||||||||||