> Is there an easy way to get the location of a specific instance of a
> character in an array?
>
> for example:
>
>    $MyArray = "This is the test";
>
> I would like to know the index of the first occurence of the letter "h"
( 1

perldoc -f index

index $MyArray,'h';


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to