threepwood
Programmer
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,
Threepwood.
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,
Threepwood.