| 1 | package Reply::Plugin::DataDumper; | ||||||||||||||
| 2 | 1 | our $AUTHORITY = 'cpan:DOY'; | |||||||||||||
| 3 | 1 | $Reply::Plugin::DataDumper::VERSION = '0.42'; | |||||||||||||
| 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 | # ABSTRACT: format results using Data::Dumper | ||||||||||||||
| 7 | |||||||||||||||
| 8 | 1 | ▶ | use base 'Reply::Plugin'; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 9 | |||||||||||||||
| 10 | 1 | ▶ | use Data::Dumper; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 11 | |||||||||||||||
| 12 | |||||||||||||||
| 13 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||
| 14 | 0 | my $class = shift; | |||||||||||||
| 15 | |||||||||||||||
| 16 | 0 | $Data::Dumper::Terse = 1; | |||||||||||||
| 17 | 0 | $Data::Dumper::Sortkeys = 1; | |||||||||||||
| 18 | |||||||||||||||
| 19 | 0 | return $class->SUPER::new(@_); | |||||||||||||
| 20 | } | ||||||||||||||
| 21 | |||||||||||||||
| 22 | 0 | ▶ | sub mangle_result { | ||||||||||||
|
Subroutine
mangle_result: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||||
| 23 | 0 | my $self = shift; | |||||||||||||
| 24 | 0 | my (@result) = @_; | |||||||||||||
| 25 | 0 | ▶ | return Dumper(@result == 0 ? () : @result == 1 ? $result[0] : \@result); | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 26 | } | ||||||||||||||
| 27 | |||||||||||||||
| 28 | 1 | 1; | |||||||||||||
| 29 | |||||||||||||||
| 30 | __END__ | ||||||||||||||