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.
In reply to Re: Find Index value of a specific element in an array
by Samy_rio
in thread Find Index value of a specific element in an array
by l.frankline
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |