X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fmean_vals;h=f29a4fce3c84e573ab103f04fb2fbf0cf3f96a38;hb=b0b818d9a5cd88c597d99afbc102dfbbf8782f94;hp=60f7aaad4034badcd687417780ff6b7e84ac9ea7;hpb=74bddf2fe57af278ed3a88de8b7243587024050d;p=biopieces.git diff --git a/bp_bin/mean_vals b/bp_bin/mean_vals index 60f7aaa..f29a4fc 100755 --- a/bp_bin/mean_vals +++ b/bp_bin/mean_vals @@ -1,4 +1,4 @@ -#!/usr/bin/env perl -w +#!/usr/bin/env perl # Copyright (C) 2007-2009 Martin A. Hansen. @@ -26,6 +26,7 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +use warnings; use strict; use Maasha::Biopieces; @@ -33,7 +34,7 @@ use Maasha::Biopieces; # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -my ( $run_time_beg, $run_time_end, $options, $in, $out, $record, $key, %sum_hash, %count_hash, $mean, $fh ); +my ( $options, $in, $out, $record, $key, %sum_hash, %count_hash, $mean, $fh ); $options = Maasha::Biopieces::parse_options( [ @@ -75,26 +76,22 @@ foreach $key ( @{ $options->{ "keys" } } ) close $fh; +Maasha::Biopieces::close_stream( $in ); +Maasha::Biopieces::close_stream( $out ); + # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< BEGIN { - $run_time_beg = Maasha::Biopieces::run_time(); - - Maasha::Biopieces::log_biopiece(); + Maasha::Biopieces::status_set(); } END { - Maasha::Biopieces::close_stream( $in ); - Maasha::Biopieces::close_stream( $out ); - - $run_time_end = Maasha::Biopieces::run_time(); - - Maasha::Biopieces::run_time_print( $run_time_beg, $run_time_end, $options ); + Maasha::Biopieces::status_log(); } @@ -102,4 +99,3 @@ END __END__ -