in reply to Hashes of Hashes Error

Looks like this is the problem–

{$2}

The braces create an anonymous hash(ref) and hashes require pairs; { key => val } would be fine, for example, but you are only giving the equivalent of { key }, hence the odd number error.

Replies are listed 'Best First'.
Re^2: Hashes of Hashes Error
by Jeri (Scribe) on Nov 09, 2011 at 18:46 UTC

    Would this fix my problem?

    $HoH{$name}{$1}={$1=>$2};

      It really depends on what you want to do with the data. Probably what you want is no hash at the end; guessing.

      $HoH{$name}{$1} = $2;