Joel Stout wrote:
: 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";
: 
: }

I'd say it depends on whether you want to use %Fields
as a has so much that dereferencing it from %Accts is a pain.
My preference would be the second way:

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

        print "$name : $Accts{$account}{$name}\n";

}

-- tdk

Reply via email to