- or download this
while( <DATA> ) {
chomp;
print "( $_ ) = ( ", eval($_), " )\n";
}
- or download this
use Math::Expression::Evaluator;
...
1 + 2
2 * 2 + 4
asdf#@fg
- or download this
( 1+2 ) = ( 3 )
( 1 + 2 ) = ( 3 )
( 2 * 2 + 4 ) = ( 8 )
Unable to resolve expression (asdf#@fg).