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
In reply to Re: Is there a Variable to literal expression shortcut?
by broquaint
in thread Is there a Variable to literal expression shortcut?
by true
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |