map { $eval_val =~ s/\Q$_\E/$record->{ $_ }/g } @keys;
- if ( $eval_val !~ /\s+[+\-\*x]{1,2}\s+/)
- {
- $record->{ $eval_key } = $eval_val;
- }
- else
+ if ( $eval_val =~ /\+|\-|\*|\\/ or $eval_val =~ /\s+x\s+/)
{
$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
+ {
+ $record->{ $eval_key } = $eval_val;
+ }
}
else
{