Assigning a variable to hash keys and values

From: Daniel Falkenberg (dfalkenberg_at_optusnet.com.au)
Date: 06/29/04


To: <beginners@perl.org>
Date: Tue, 29 Jun 2004 16:19:22 +0930

Hello All,

I currently have a hash of a hash...

> %HoH = (
> Key1 => {
> Apple => "Green",
> Banna => "Yellow",
> },
> Key2 => {
> Carrot => "Orange",
> Tomoatoe => "Red",
> },
> );

How can I assign Key2 to a variable?

Regards,

Dan



Relevant Pages