in reply to Initializing a hash using conditions

%hash = ( 'abc' => $i ? 7 : 0, 'hk' => 5, 'jk' => 6 );
see perlop

holli, regexed monk