in reply to Re^2: stupid/simple mistake
in thread stupid/simple mistake

well, for these i've got nothing on my own, but i offer these:
Statistics::Descriptive and How do I retrieve the position of the first occurrence of a match?