in reply to Calculating statistical median

Perhaps Statistics::Descriptive meets your needs.