if ($hash{foo} = 42) { print "The answer to life, the universe, and everything is contained within foo!\n"; }