| 1 | package Markdent::CheckedOutput; | ||||||||||
| 2 | |||||||||||
| 3 | 34 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 34 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 34 | our $VERSION = '0.41'; | |||||||||
| 7 | |||||||||||
| 8 | 5 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 9 | 5 | my $class = shift; | |||||||||
| 10 | 5 | my $output = shift; | |||||||||
| 11 | |||||||||||
| 12 | 5 | return bless \$output, $class; | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | ## no critic (Subroutines::ProhibitBuiltinHomonyms) | ||||||||||
| 16 | 93 | ▶ | sub print { | ||||||||
|
Subroutine
print: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 17 | 93 | my $self = shift; | |||||||||
| 18 | |||||||||||
| 19 | # We don't need warnings from IO::* about printing to closed handles when | ||||||||||
| 20 | # we'll die in that case anyway. | ||||||||||
| 21 | # | ||||||||||
| 22 | ## no critic (TestingAndDebugging::ProhibitNoWarnings) | ||||||||||
| 23 | 34 | ▶ | no warnings 'io'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | ## use critic | ||||||||||
| 25 | 93 | ▶ | print { ${$self} } @_ or die "Cannot write to handle: $!"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | } | ||||||||||
| 27 | ## use critic | ||||||||||
| 28 | |||||||||||
| 29 | 34 | 1; | |||||||||
| 30 | |||||||||||
| 31 | # ABSTRACT: This class has no user-facing parts | ||||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||