| 1 | package Puzzle::Null; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | $Puzzle::Null::VERSION = '0.18'; | |
| 9 | } | ||
| 10 | # ABSTRACT: Implements the Null Class design pattern | ||
| 11 | use overload | ||
| 12 | 0 | ▶ | 'bool' => sub { 0 }, |
|
Subroutine
BEGIN: called CC=1 SCAR=1.2
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 13 | 0 | ▶ | '""' => sub { '' }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 14 | 0 | ▶ | '0+' => sub { 0 }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 15 | 1 | fallback => 1; | |
| 16 | 1 | our $null = bless {}, __PACKAGE__; | |
| 17 | 0 | ▶ | sub AUTOLOAD { $null } |
|
Subroutine
AUTOLOAD: not called CC=1 SCAR=6.9
| |||
| 18 | 1 | 1; | |