in reply to Seeing if two numbers have the same sign
sub same_sign { abs($_[0] + $_[1]) == abs($_[0]) + abs($_[1]); } [download]