Loops
Iterating over items/ranges with foreach and conditional repetition with while.
Simple enough for a 5-year-old to understand
foreach
foreach my $i (1..3) { print "$i\n";}🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: 1
2
3
4
5