example.pl untested

filter: Statementstmt 0.0% 0 / 13 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use Win32::SystemInfo;
2 use Data::Dumper;
3 my %mHash;
4 if (Win32::SystemInfo::MemoryStatus(%mHash,'GB'))
5 {
6 print Dumper(\%mHash);
7 }
8 my ($proc,%pHash);
9 if ($proc = Win32::SystemInfo::ProcessorInfo(%pHash))
10 {
11 print "proc: $proc\n";
12 print Dumper(\%pHash);
13 }