R
ravi
In the following piece of code
foreach $element (@array) {
# Is there a special variable to know the index
# of the array element
}
Is there a efficient way to know the index of the array element inside
the given loop, assuming i dont have a count variable.
foreach $element (@array) {
# Is there a special variable to know the index
# of the array element
}
Is there a efficient way to know the index of the array element inside
the given loop, assuming i dont have a count variable.