- or download this
>perl -wMstrict -le
"my @text = qw/A B C D E F G H I J/;
...
}
"
F is at index 5
- or download this
>perl -wMstrict -le
"my @text = ('A' .. 'J');
...
}
"
F is at index 5
- or download this
>perl -wMstrict -le
"my @text = qw/A B C D E F G H F I J/;
...
print qq{these indices have an 'F': @F_in_it};
"
these indices have an 'F': 5 8