each on arrays
- each
while (my ($index, $value) = each @a) {
say "$index $value";
}
0 a
1 b
2 c
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
while (my ($index, $value) = each @a) {
say "$index $value";
}
0 a
1 b
2 c