| 1 | package Data::Format::Pretty::SimpleText; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use 5.010; | ||||||||
|
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 | ▶ | use Data::Format::Pretty::Console (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | require Exporter; | |||||||||
| 10 | 1 | our @ISA = qw(Exporter); | |||||||||
| 11 | 1 | our @EXPORT_OK = qw(format_pretty); | |||||||||
| 12 | |||||||||||
| 13 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |||||||||
| 14 | 1 | our $DATE = '2023-08-07'; # DATE | |||||||||
| 15 | 1 | our $DIST = 'Data-Format-Pretty-Console'; # DIST | |||||||||
| 16 | 1 | our $VERSION = '0.392'; # VERSION | |||||||||
| 17 | |||||||||||
| 18 | 0 | ▶ | sub content_type { "text/plain" } | ||||||||
|
Subroutine
content_type: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub format_pretty { | ||||||||
|
Subroutine
format_pretty: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 21 | 0 | my ($data, $opts) = @_; | |||||||||
| 22 | 0 | ▶ | my %opts = $opts ? %$opts : (); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | $opts{interactive} = 0; | |||||||||
| 24 | 0 | Data::Format::Pretty::Console::format_pretty($data, \%opts); | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 1 | 1; | |||||||||
| 28 | # ABSTRACT: Pretty-print data structure as simple text | ||||||||||
| 29 | |||||||||||
| 30 | __END__ | ||||||||||