in reply to Re: index of the minimum element of the array
in thread index of the minimum element of the array
OP said "atm i am unable to patch perl on current pc, so a busrouitine for index would be the best solution for me." Suggesting another language seems like it is well outside the realm of possibility here.
If we are going to suggest alternatives that involve installing things, why leave Perl? PDL provides a simple solution which is far more efficient than any of your solutions from other languages:
my $index = pdl(@data)->minimum_ind;