in reply to Re: &&= vivify keys?in thread &&= vivify keys?
The OP does indeed want to test the value ("and with a true value"). The following would serve his needs:
$x{a} = 1 if !$x{a}; [download]