(exists $distinct{$v}) ? $overflow{$k} = $v : $distinct{$v} = $k; #### ( (exists $distinct{$v}) ? $overflow{$k} = $v : $distinct{$v} ) = $k; #### (exists $distinct{$v}) ? $overflow{$k} = $v = $k : $distinct{$v} = $k #### if( $distinct{$v} ) { $overflow{$k}= $v } else { $distinct{$v}= $k }