X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fbioscript;h=f2e4cbdc29801aa1fe884b000f1ea6622c433fe6;hb=2f0fd91b461033529a4a72e161bd133252a22eb6;hp=efc8b9350562f8bbfefe154b89506dee78c59e38;hpb=b6f77ae532e1db4222911e1b44fcd3655650d2f1;p=biopieces.git diff --git a/bp_bin/bioscript b/bp_bin/bioscript index efc8b93..f2e4cbd 100755 --- a/bp_bin/bioscript +++ b/bp_bin/bioscript @@ -1,4 +1,4 @@ -#!/usr/bin/env perl -w +#!/usr/bin/env perl # Copyright (C) 2007-2009 Martin A. Hansen. @@ -26,8 +26,10 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +use warnings; use strict; use Maasha::Biopieces qw( get_record put_record ); +use Data::Dumper; use Maasha::Common; @@ -47,10 +49,11 @@ $out = Maasha::Biopieces::write_stream( $options->{ "stream_out" } ); print STDERR "eval: $options->{ 'eval' }\n" if $options->{ 'verbose' }; -eval "$options->{ 'eval' }"; +eval "no strict; $options->{ 'eval' }"; Maasha::Common::error( qq(Eval of "$options->{ 'eval' }" failed) ) if $@; + Maasha::Biopieces::close_stream( $in ); Maasha::Biopieces::close_stream( $out );