example.pl untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 use Data::JavaScript;
2  
3 $hash = {'string' => 'Joseph',
4 'array' => [qw(0 1 2 3 4 5 6 7 8 9 a b c d e f)],
5 'capitals' => {'Sverige' => 'Stockholm',
6 'Norge' => 'Oslo',
7 'Danmark' => 'Koebenhavn'},
8 'and' => [[0, 0], [0, 1]],
9 'or' => [[0, 1], [1, 1]],
10 'xor' => [[0, 1], [1, 0]]};
11 $hash->{'ref'} = $hash;
12  
13 print scalar(jsdump("facts", $hash, 31.4e-1));
14