> 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/l/loops/for.md).

# For

```perl
for ^5 {

	for 0..$_ {
		print "*";
	}
	
	print "\n";

}
```

or using only one for loop:

```perl
say '*' x $_ for 1..5;
```

or without using any loops at all:

```perl
([\~] "*" xx 5).join("\n").say;
```
