http://www.perlmonks.org?node_id=493603


in reply to Re^2: Shortcut operator for $a->{'b'}=$b if $b;
in thread Shortcut operator for $a->{'b'}=$b if $b;

And thereby logical false values do not get assigned, which is not as per the specs.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

  • Comment on Re^3: Shortcut operator for $a->{'b'}=$b if $b;

Replies are listed 'Best First'.
Re^4: Shortcut operator for $a->{'b'}=$b if $b;
by Roy Johnson (Monsignor) on Sep 20, 2005 at 22:21 UTC
    You should re-read the OP's post. It says "The point is to have no key 'b' exist if $b is false."

    Caution: Contents may have been coded under pressure.