CDP/Dump.pm untested

filter: Statementstmt 0.0% 0 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 44 CC 1 SCAR 6.9
CC
1
Cov
0%
dumpARef
2.0
dumpHRef
2.0
BEGIN
2.0
CRAP 2.0
1 package CDP::Dump;
2  
3 use Frontier::Client;
4  
5 use strict;
6 use warnings;
7  
8 our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, );
9 require Exporter;
10 require DynaLoader;
11 require AutoLoader;
12  
13 @ISA = qw(Exporter DynaLoader AutoLoader);
14 # Items to export into callers namespace by default. Note: do not export
15 # names by default without a very good reason. Use EXPORT_OK instead.
16 # Do not simply export all your public functions/methods/constants.
17 @EXPORT = qw//;
18  
19 @EXPORT_OK =
20 qw/
21 dumpARef
22 dumpHRef
23 /;
24  
25 %EXPORT_TAGS = (
26 'ALL' => \@EXPORT_OK,
27 'CONST' => [qw//],
28 );
29  
30 Exporter::export_ok_tags(keys %EXPORT_TAGS);
31  
32 sub dumpARef {
33 my $aref = shift;
34 return @{$aref};
35 }
36  
37 sub dumpHRef {
38 my $href = shift;
39 while (my ($key, $value) = %{$href}) {
40 print "$key: $value";
41 }
42 }
43  
44 1;
45 __END__