in reply to Re: Using Statistics::Descriptive for percentiles
in thread Using Statistics::Descriptive for percentiles

didn't work for my Perl v5.18.4

need to change the final line to:

return (sort {$a <=> $b} @$aref)[$percentile];

because otherwise it sorts in alphabetical not numeric order.