blib/script/bg_hist.pl untested

filter: Statementstmt 0.0% 0 / 25 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 36 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/env perl
2 # created on 2014-07-06
3  
4 use warnings;
5 use strict;
6 use 5.010;
7 use Bio::Gonzales::Stat::Util qw/hist_text/;
8  
9 use Pod::Usage;
10 use Getopt::Long;
11  
12 my %opt = ();
13 GetOptions( \%opt, 'log10|l', 'breaks|b=i', 'help|h' ) or pod2usage(2);
14  
15 pod2usage( -exitval => 0, -verbose => 2 ) if ( $opt{help} );
16  
17 my @values = map { chomp; $_ } <STDIN>;
18  
19 print hist_text( \@values, { skip_empty => 1, breaks => $opt{breaks} , 'log10' => $opt{'log10'} });