X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fread_bed;h=28157493dc824fa4c2b1b84f3539ecc33cf8532c;hb=5de6112b70b59420b245ce636a8b2e3c90acbe00;hp=18c5c226fe1b5f892e7d07dfb3b36b0317a3df65;hpb=93c8e44f71df52dfbef3766e20ff726c051a4406;p=biopieces.git diff --git a/bp_bin/read_bed b/bp_bin/read_bed index 18c5c22..2815749 100755 --- a/bp_bin/read_bed +++ b/bp_bin/read_bed @@ -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; @@ -35,7 +36,7 @@ use Maasha::UCSC::BED; # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -my ( $run_time_beg, $run_time_end, $options, $in, $out, $file, $record, $bed_entry, $data_in, $num ); +my ( $options, $in, $out, $file, $record, $bed_entry, $data_in, $num ); $options = Maasha::Biopieces::parse_options( [ @@ -73,25 +74,22 @@ if ( $options->{ 'data_in' } ) close $data_in; } +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(); }