| 1 | package Data::Dumper::Hash; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | require Exporter; | |||||||||
| 5 | 1 | ▶ | use vars qw/@ISA @EXPORT @EXPORT_OK/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | our $VERSION = '1.0'; | |||||||||
| 7 | 1 | @ISA = qw/Exporter/; | |||||||||
| 8 | 1 | @EXPORT = qw/Dump/; | |||||||||
| 9 | 1 | @EXPORT_OK = qw/Dump/; | |||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use Data::Dumper; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | sub Dump { | ||||||||
|
Subroutine
Dump: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 15 | 0 | my @params = @_; | |||||||||
| 16 | 0 | my @vals = (); | |||||||||
| 17 | 0 | my @names = (); | |||||||||
| 18 | |||||||||||
| 19 | 0 | for my $i (0 .. $#params) { | |||||||||
| 20 | 0 | ▶ | if (mod($i/2)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 0 | push(@vals, $params[$i]); | |||||||||
| 22 | } | ||||||||||
| 23 | else { | ||||||||||
| 24 | 0 | push(@names, $params[$i]); | |||||||||
| 25 | } | ||||||||||
| 26 | } | ||||||||||
| 27 | 0 | return Data::Dumper->Dump(\@vals, \@names); | |||||||||
| 28 | } | ||||||||||
| 29 | 1 | 1; | |||||||||
| 30 | __END__ | ||||||||||