Daniel Falkenberg wrote:
> 
> Hello All,

Hello,

> 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?

my $variable = $HoH{ Key2 };


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to