EVAL

EVAL accepts the code and executes it. Here's the simplest example:

say EVAL('12 + 13'); # 25

It's important to remember that EVAL will not hide exeptions. The following code will produce an error:

my $zero = 0;
my $inf = EVAL('42 / $zero');
say $inf;

Note that if you do not use the result of the EVAL block, which failed througing an exception (in the previous example it is enough to comment out the last line printing the result), an exception will not break the programme:

my $zero = 0;
my $inf = EVAL('42 / $zero');
#say $inf;
say "ok"; # OK, it works