X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fhead_records;h=d88c2228aef9abc01deb3a62a3b83e5b7a308dfd;hb=32a9953ec9526fd800a1d564f9bc7c70965689d6;hp=bc26919a47955b27652823de6ff9c3a35db52568;hpb=5a59ed9dbeb22cb93a18a6c08cfb6815d4ee9dc1;p=biopieces.git diff --git a/bp_bin/head_records b/bp_bin/head_records index bc26919..d88c222 100755 --- a/bp_bin/head_records +++ b/bp_bin/head_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; @@ -33,7 +34,7 @@ use Maasha::Biopieces; # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -my ( $run_time_beg, $run_time_end, $options, $in, $out, $record, $count ); +my ( $options, $in, $out, $record, $count ); $options = Maasha::Biopieces::parse_options( [ @@ -55,26 +56,22 @@ while ( $record = Maasha::Biopieces::get_record( $in ) ) last if $count == $options->{ "num" }; } +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(); } @@ -82,4 +79,3 @@ END __END__ -