Many thanks, one last tidbit:
Is it better to :

%Fields = %{$Accts{$account}};
foreach $name ( keys %Fields ) {

        print "$name : $Fields{$name}\n";
}

or 

foreach $name ( keys %{$Accts{$account}} ) {

        print "$name : <ok I'm stuck again>\n";

}

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 12:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Records put into a hash - Beginner Question



Joel R. Stout wrote:
: #But when I try to pluck a fields value out, I get hosed
: 
: foreach $account (keys %Accts) {
:       print "Fields: \n";     
:       foreach $name (keys $Accts{$account}) {
:       #here's where my brainstorming turns into a light sprinkle
:       #there's a scalar here ($Accts{$account}) but I need a hash at this
: point, correct?

Correct:

        foreach $name ( keys %{$Accts{$account}} ) {

-- tdk

Reply via email to