Hi, I would like to take the index from an array, if I know the value.
E.g. I have the array:
@var = (a,b,c,d,e);
and I would like to know the position of the element 'c' into the array (i.e. 3). Is there any way to get this one with 'grep' or another function?
Salu2 and thanks in advance...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.