in reply to parsing and evaluating a string

Of course one could be lazy and simply use the database itself to compute the answer, sidestepping any issues of doing the parsing in Perl.

my $expanded =$dbh->selectrow_array( qq{SELECT char(123)+...+char(43); +} );