in reply to Re: Example in Cookbook of hash of hash
in thread Example in Cookbook of hash of hash

Ikegami, thanks for your useful reply! What is going on in that for declaration? I have never seen it before like that and am confused about the position of the byname declaration, it almost looks like it part of the hash.
  • Comment on Re^2: Example in Cookbook of hash of hash

Replies are listed 'Best First'.
Re^3: Example in Cookbook of hash of hash
by ikegami (Patriarch) on Mar 26, 2010 at 19:17 UTC
    Are you asking about my %byname;?
      Ikegami, I am confused about
      { $byname{ $record->{NAME} } = $record; }
      Is it part of a for loop?
        The "{ }" are part of the loop syntax. The middle line is the body of the loop. It's what's executed for each pass of the loop.