> 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/c/compile-time_calculation.md).

# Compile-time calculation

```perl
constant $tenfact = [*] 2..10; 
say $tenfact;
```

Like Perl 5, we also have a BEGIN block, but it also works to introduce a blockless statement, the value of which will be stored up to be used as an expression at run time:

```perl
 say BEGIN [*] 2..10;
```
