in reply to Refactoring: dumb or witty use of ternary operator?

You are right. Its all the same as $outhash{$str}++;
Boris