in reply to Passing references to array slices

Since you can't create a reference to an array slice as such, since it returns a list, it's best just to wrap it in an anonymous array e.g
CalcMinAvgMaxSum( [ @{ $values[1] }[ $start .. $end ] ] );
See. tye's References quick reference and perlreftut for good starters on referencing + dereferencing in perl.
HTH

_________
broquaint