work.pl untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl -w
2 use strict;
3  
4 use BAM;
5 use Data::Dumper;
6  
7 my $ncb = Net::Canopy::BAM->new();
8  
9 my $qos = $ncb->buildQstr(
10 upspeed => 128,
11 downspeed => 512,
12 upbucket => 200000,
13 downbucket => 500000
14 );
15 print "Formatted QoS string:\n" . Dumper($qos);
16  
17 print "Split QoS string:\n";
18 my $qhash = $ncb->parseQstr(qstr=>$qos);
19 print Dumper($qhash);
20