| 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.39'; | |||||||||
| 7 | |||||||||||
| 8 | sub new { | ||||||||||
| 9 | 5 | ▶ | my $class = shift; | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 10 | 5 | my $output = shift; | |||||||||
| 11 | |||||||||||
| 12 | 5 | return bless \$output, $class; | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | ## no critic (Subroutines::ProhibitBuiltinHomonyms) | ||||||||||
| 16 | sub print { | ||||||||||
| 17 | 93 | ▶ | my $self = shift; | ||||||||
|
Subroutine
print: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 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__ | ||||||||||
| 34 | |||||||||||
| 35 | =pod | ||||||||||
| 36 | |||||||||||
| 37 | =encoding UTF-8 | ||||||||||
| 38 | |||||||||||
| 39 | =head1 NAME | ||||||||||
| 40 | |||||||||||
| 41 | Markdent::CheckedOutput - This class has no user-facing parts | ||||||||||
| 42 | |||||||||||
| 43 | =head1 VERSION | ||||||||||
| 44 | |||||||||||
| 45 | version 0.39 | ||||||||||
| 46 | |||||||||||
| 47 | =head1 SUPPORT | ||||||||||
| 48 | |||||||||||
| 49 | Bugs may be submitted at L<https://github.com/houseabsolute/Markdent/issues>. | ||||||||||
| 50 | |||||||||||
| 51 | I am also usually active on IRC as 'autarch' on C<irc://irc.perl.org>. | ||||||||||
| 52 | |||||||||||
| 53 | =head1 SOURCE | ||||||||||
| 54 | |||||||||||
| 55 | The source code repository for Markdent can be found at L<https://github.com/houseabsolute/Markdent>. | ||||||||||
| 56 | |||||||||||
| 57 | =head1 AUTHOR | ||||||||||
| 58 | |||||||||||
| 59 | Dave Rolsky <autarch@urth.org> | ||||||||||
| 60 | |||||||||||
| 61 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 62 | |||||||||||
| 63 | This software is copyright (c) 2021 by Dave Rolsky. | ||||||||||
| 64 | |||||||||||
| 65 | This is free software; you can redistribute it and/or modify it under | ||||||||||
| 66 | the same terms as the Perl 5 programming language system itself. | ||||||||||
| 67 | |||||||||||
| 68 | The full text of the license can be found in the | ||||||||||
| 69 | F<LICENSE> file included with this distribution. | ||||||||||
| 70 | |||||||||||
| 71 | =cut | ||||||||||