in reply to Use of uninitialized value within
Have you looked at the values of $tmp1? Most likely, $tmp1 gets a value larger than the number of elements of @parr, and that's why you get the warning.