- or download this
let myArray = ["alfa", "beta", "gamma"];
myArray.forEach(
(elem, position) => console.log(`at position ${position} th
+ere is ${elem}`)
)
- or download this
at position 0 there is alfa
at position 1 there is beta
at position 2 there is gamma
- or download this
my @myArray = qw(alfa beta gamma)
grep { warn "at position ??? there is $_\n" } @myArray;
- or download this
at position ??? there is alfa
at position ??? there is beta
at position ??? there is gamma