line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Petal::Utils::Dump; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings::register; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
97
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
79
|
|
7
|
1
|
|
|
1
|
|
6
|
use Data::Dumper; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
4
|
use base qw( Petal::Utils::Base ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
587
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
5
|
use constant name => 'dump'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
60
|
|
12
|
1
|
|
|
1
|
|
6
|
use constant aliases => qw(); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
202
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = ((require Petal::Utils), $Petal::Utils::VERSION)[1]; |
15
|
|
|
|
|
|
|
our $REVISION = (split(/ /, ' $Revision: 1.3 $ '))[2]; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub process { |
18
|
1
|
|
|
1
|
0
|
15804
|
my $class = shift; |
19
|
1
|
|
|
|
|
3
|
my $hash = shift; |
20
|
1
|
|
33
|
|
|
6
|
my $args = shift || confess( "'dump' expects a variable (got nothing)" ); |
21
|
1
|
|
|
|
|
6
|
my $result = $hash->fetch( $args ); |
22
|
1
|
|
|
|
|
220
|
return Dumper( $result ); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |