| 1 | package #hide | ||||||||||
| 2 | AnyEvent::Connection::Util; | ||||||||||
| 3 | |||||||||||
| 4 | 2 | ▶ | use common::sense 2;m{ | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | use strict; | ||||||||||
| 6 | use warnings; | ||||||||||
| 7 | }; | ||||||||||
| 8 | 2 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 4 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=4 SCAR=14.1
| |||||||||||
| 11 | 4 | my $me = shift; | |||||||||
| 12 | 4 | my $pk = caller; | |||||||||
| 13 | 4 | ▶ | for (@_ ? @_ : qw(dumper)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 4 | ▶ | defined &$_ or croak "$_ is not exported by $me"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 4 | *{$pk.'::'.$_} = \&$_; | |||||||||
| 16 | } | ||||||||||
| 17 | 4 | return; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub dumper (@) { | ||||||||
|
Subroutine
dumper: not called CC=2 SCAR=14.2
Pod
undocumented
| |||||||||||
| 21 | 0 | ▶ | eval { require Data::Dumper;1 } or return @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 2 | ▶ | no strict 'refs'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 23 | 0 | ▶ | *{ caller().'::dumper' } = sub (@) { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 24 | 0 | my $s = Data::Dumper->new([@_]) | |||||||||
| 25 | #->Maxdepth(3) | ||||||||||
| 26 | ->Terse(1) | ||||||||||
| 27 | ->Indent(1) | ||||||||||
| 28 | ->Purity(0) | ||||||||||
| 29 | ->Useqq(1) | ||||||||||
| 30 | ->Quotekeys(0) | ||||||||||
| 31 | ->Dump; | ||||||||||
| 32 | 0 | $s =~ s{\\x\{([a-f0-9]{1,4})\}}{chr hex $1}sge; | |||||||||
| 33 | 0 | $s; | |||||||||
| 34 | 0 | }; | |||||||||
| 35 | 0 | goto &{ caller().'::dumper' }; | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 2 | 1; | |||||||||