in reply to how to find median value

Short answer ( I'm late :)
sub is_odd { return ( $_[0] % 2 ) != 0 ; }

__________________________
Hope this helps