# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+use warnings;
use strict;
use Maasha::Common;
use Maasha::Biopieces;
$options = Maasha::Biopieces::parse_options(
[
- { long => 'eval', short => 'e', type => 'string', mandatory => 'yes', default => undef, allowed => undef, disallowed => undef },
+ { long => 'eval', short => 'e', type => 'string', mandatory => 'yes', default => undef, allowed => undef, disallowed => undef },
+ { long => 'format', short => 'f', type => 'string', mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
]
);
$record->{ $eval_key } = eval "$eval_val";
Maasha::Common::error( qq(eval "$eval_key = $eval_val" failed -> $@) ) if $@;
+ $record->{ $eval_key } = sprintf( $options->{ 'format' }, $record->{ $eval_key } ) if $options->{ 'format' };
}
else
{