in reply to Re: hash of hash of hash of hash of hash...
in thread hash of hash of hash of hash of hash...

That was it, thanks for the moment of clarity! I got tripped up because when explicitly stated the variables I had to single quote them.

Thanks for your help, I really appreciate it!
-Eric

  • Comment on Re^2: hash of hash of hash of hash of hash...

Replies are listed 'Best First'.
Re^3: hash of hash of hash of hash of hash...
by kennethk (Abbot) on Feb 25, 2010 at 23:03 UTC
    No, you don't. When a key does not contain any white space or does not start with a sigil, Perl will automatically stringify it. Thus

    print "$topHash{2010}{Feb}{11}{00}{03}\n";

    is syntactically equivalent to

    print "$topHash{'2010'}{'Feb'}{'11'}{'00'}{'03'}\n";.

    See Scalar value constructors in perldata, for example.