my $rain = 1; my %Weather = ( 'precipitation' => $rain ? 'wet' : 'dry', );