Runtime evaluation
The eval method evaluates a string as code and returns the resulting object.
var (a, b) = (-5, 7)
say eval 'abs(a * b)' # => 35
say abs(a * b) # => 35
The eval method evaluates a string as code and returns the resulting object.
var (a, b) = (-5, 7)
say eval 'abs(a * b)' # => 35
say abs(a * b) # => 35