in reply to Find Index value of a specific element in an array
Hi, here is an alternate way to do this, but as far as efficency i am not sure.
my ($index) = grep $roman[$_] eq "xiv", 0..$#roman;
Also take a look at this finding index number in an array
Regards,
Velusamy R.
|
|---|