in reply to Optimize a perl block

How big is %$foo? Does $foo->{$b}{$c}{value} always exist, or are you counting on the undef getting converted to a zero? Is $hash_ref really $foo->{$b}?

Replies are listed 'Best First'.
Re^2: Optimize a perl block
by llavaud (Novice) on Sep 08, 2017 at 08:20 UTC
    %$foo is relatively small, about 100 keys and $foo->{$b}{$c}{value} always exist yes.

    I don't understand what you mean by: Is $hash_ref really $foo->{$b} ?