> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/perl6-rosettacode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/perl6-rosettacode/programming_tasks/r/runtime_evaluation.md).

# Runtime evaluation

Any syntactically valid sequence of statements may be run, and the snippet to be run can see its outer lexical scope at the point of the `eval`:

```perl
use MONKEY-SEE-NO-EVAL;

my ($a, $b) = (-5, 7);
my $ans = EVAL 'abs($a * $b)';  # => 35
```

Unlike in Perl 5, `eval` in Raku only compiles and executes the string, but does not trap exceptions. You must say `try eval` to get that behavior (or supply a `CATCH` block within the text to be evaluated).
