in reply to Hashes not working as expected

Never mind, dear friends. I figured out the problem and corrected it. Thanks.

Replies are listed 'Best First'.
Re^2: Hashes not working as expected
by stevieb (Canon) on Feb 27, 2016 at 13:14 UTC
    That's great that you solved your issue, but for the benefit of future readers, could you please let us know what you did that fixed it?
Re^2: Hashes not working as expected
by poj (Abbot) on Feb 27, 2016 at 18:38 UTC

    Was the problem autovivification in sub getSignalsWithValsInTimeWindow() ?

    if(exists $lastKnownSigValHRef->{$vcdFile}) {
      foreach my $signalId (keys %{$lastKnownSigValHRef->{$vcdFile}}) {
       foreach my $signalNm (keys %{$lastKnownSigValHRef->{$vcdFile}->{$signalId}}) {
    
      #### this line is creating the extra signals 
      #### as you check the lowest level
        if(!exists $inTimeRangeSignalsH{$vcdFile}{$signalNm}{$signalId}) {
    
    
         $sigsNotInTimeRangeH{$vcdFile}{$signalNm}{$signalId} = $lastKnownSigValHRef->{$vcdFile}->{$signalId}->{$signalNm}->{$hierScope}->[0];
        } 
       }
      }
     }
    
    poj