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