| 1 | package Devel::REPL::Plugin::DDP; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use 5.008_005; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | our $VERSION = '0.05'; | |||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use Devel::REPL::Plugin; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use Data::Printer use_prototypes => 0; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | around 'format_result' => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=3 SCAR=24.8
| |||||||||||
| 11 | 0 | my $orig = shift; | |||||||||
| 12 | 0 | my $self = shift; | |||||||||
| 13 | 0 | my @to_dump = @_; | |||||||||
| 14 | 0 | my $out; | |||||||||
| 15 | 0 | for (@to_dump) { | |||||||||
| 16 | 0 | my $buf; | |||||||||
| 17 | 0 | p(\$_, | |||||||||
| 18 | output => \$buf, | ||||||||||
| 19 | colored => 1, | ||||||||||
| 20 | caller_info => 0 ); | ||||||||||
| 21 | 0 | $out .= $buf; | |||||||||
| 22 | } | ||||||||||
| 23 | 0 | ▶ | chomp $out if defined $out; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | 0 | $self->$orig($out); | |||||||||
| 25 | 1 | }; | |||||||||
| 26 | |||||||||||
| 27 | 1 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||