in reply to Re: Chomp a numerical expression, return the answer.
in thread Chomp a numerical expression, return the answer.
Something like
or something along those lines it would make it much harder to actually do anything underhanded.if($exp =~ /^[-+/*%()\s\d]+$/) { print eval $exp; }
Exactly what taint mode encourages people to do.
|
|---|