in reply to Is there a Variable to literal expression shortcut?
use strict; use warnings; my $var = "(2+2)"; my $result = eval $var; print $result; [download]