| 1 | package JSON::Types; | ||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use parent 'Exporter'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 2 | our $VERSION = '0.05'; | |||||||||
| 7 | 2 | our @EXPORT = qw/number string bool/; | |||||||||
| 8 | |||||||||||
| 9 | 4 | ▶ | sub number($) { | ||||||||
|
Subroutine
number: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 10 | 4 | ▶ | return undef unless defined $_[0]; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 2 | $_[0] + 0; | |||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | 3 | ▶ | sub string($) { | ||||||||
|
Subroutine
string: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 15 | 3 | ▶ | return undef unless defined $_[0]; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 1 | $_[0] . ''; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 3 | ▶ | sub bool($) { | ||||||||
|
Subroutine
bool: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 3 | ▶ | $_[0] ? \1 : \0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 2 | 1; | |||||||||
| 24 | |||||||||||
| 25 | __END__ | ||||||||||