in reply to Is there a Variable to literal expression shortcut?
Not as slimline as string eval, but not as potentially dangerous either :) See. the Math::Expression docs for more info.use Math::Expression; my $me = Math::Expression->new; print $me->Eval( $me->Parse("2 + 2") ); __output__ 4
_________
broquaint
|
|---|