That's not equivalent. In your code, $tests->{$stype} is never assigned anything.
But it's probably better. Assigning to $tests->{$stype} was probably a side-effect.
In reply to Re^3: What the heck does "tests->{$stype} ||= {};" do?
by ikegami
in thread What the heck does "tests->{$stype} ||= {};" do?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |