my $expression = "(2+2)"; my $result = eval $expression;
You can have a lot of fun with eval.
____________________
Jeremy
I didn't believe in evil until I dated it.
In reply to Re: Is there a Variable to literal expression shortcut?
by jepri
in thread Is there a Variable to literal expression shortcut?
by true
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |