For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > June 2005 > Help needed - Hash of Hashes









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Help needed - Hash of Hashes
hvbalaji

2005-06-10, 3:50 pm

I am having a hash like this

Key value

a.c var1 int
a.c var2 int
a.c var3 float
b.c var4 char
b.c var5 int
b.c var6 int
b.c var7 char

There is a 'tab space' between a.c and var1 in the key.

I want to make this hash as like this hash:

Key Value
Key Value

a.c int var1
var2
float var3
b.c int var5
var6
char var4
var7

I tried to use hash of hashes, but it is returning the undefined value..
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com