in reply to Re: What the heck does "tests->{$stype} ||= {};" do?
in thread What the heck does "tests->{$stype} ||= {};" do?

... the 2 lines in question could be restated, IMCO without losing (maybe even introducing) clarity, to:
my %tests = %{$tests->{$stype} || {}};

A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^3: What the heck does "tests->{$stype} ||= {};" do?
by ikegami (Patriarch) on Sep 20, 2008 at 11:23 UTC

    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.

      Thanx for that ikegami, - as usual you've spotted the deliberate mistake ;-)

      A user level that continues to overstate my experience :-))