X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Frandom_records;h=b700dc19a22ef646d32d262ecb255533a5f29218;hb=2f0fd91b461033529a4a72e161bd133252a22eb6;hp=5c4595cc222b250b722b9b0270ea7cec601489b2;hpb=b607bb9d6e4adcebd9f9e128aacc91a212010ee0;p=biopieces.git diff --git a/bp_bin/random_records b/bp_bin/random_records index 5c4595c..b700dc1 100755 --- a/bp_bin/random_records +++ b/bp_bin/random_records @@ -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; use Maasha::Filesys; @@ -96,7 +97,9 @@ while ( $record = Maasha::Biopieces::get_record( $fh_in ) ) close $fh_in; unlink $tmp_file; -Maasha::Filesys::dir_remove( $tmp_dir ); + +Maasha::Biopieces::close_stream( $in ); +Maasha::Biopieces::close_stream( $out ); # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @@ -104,20 +107,13 @@ Maasha::Filesys::dir_remove( $tmp_dir ); 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(); } @@ -125,4 +121,3 @@ END __END__ -