A second loop:

foreach $KEYS ( keys %Data){
        print "Key1 data :\n";
        map{ print $_,"\n" } @{$Data{$KEYS}{key1}};
}

José.

-----Original Message-----
From: Marija Silajev [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 11, 2002 2:43 PM
To: Perl
Subject: printing hash of a hash


Hi,

I create a hash like following:


 $Data{$KEYS} = { key1 => [@array1],
                 key2 => [@array2],
                    };


with:
foreach $KEYS ( keys %Data){
print "Key1 data : @{$Data{$KEYS}{key1}}\n";
}

I manage to print the whole @array1 in one line like:

Key1 data : 4321 432 765 341

and i would like it to look like 
Key1 data :

4321
432
765
341

I still didn'n manage to get it like this.
Thanks in advance for help.


Marija

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**** DISCLAIMER ****

"This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to