X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Foligo_freq;h=53029b661c1c70be8e64215c1ec98e49834a9129;hb=a2f82dca77855723ddc50dfb6a763da8558b7610;hp=7631103faac9544b07d88c8c1333f4448bea5f37;hpb=d435aea3cced4fd2a1a72412fc32ce1c9a9b917e;p=biopieces.git diff --git a/bp_bin/oligo_freq b/bp_bin/oligo_freq index 7631103..53029b6 100755 --- a/bp_bin/oligo_freq +++ b/bp_bin/oligo_freq @@ -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, @freq_table, %oligos ); +my ( $options, $in, $out, $record, @freq_table, %oligos ); $options = Maasha::Biopieces::parse_options( [ @@ -71,26 +72,22 @@ if ( defined $options->{ "all" } ) map { Maasha::Biopieces::put_record( $_, $out ) } @freq_table; } +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(); } @@ -98,4 +95,3 @@ END __END__ -