perl hash in hash problem
vivek khurana <khuranavivek_in-/[email protected]> Thu, 11 Nov 2004 06:31:56 -0800 (PST)
| Newsgroups | gmane.user-groups.linux.delhi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! all
I have a hash in perl which looks like this
my $col_selection = {
disp => "color",
value => 1,
req => 1,
props => {
type => 'select',
vals => {
1 => 'Red',
2 => 'green',
3 => 'blue',
}
}
};
What i want is that values for vals should be read
form a config file. I have made a config file and able
to get values form it.
Npw my problem is how do i refer to vals in the code
to create the hash.
I have tried following but no luck
$col_selection->props->vals = ($key, $value);
Aforesaid was a fluke which has not worked. Can any
one point me how to refer vals in this kind of hash!!
Regards
VK
=====
Hug the REALITY ;-)
Disclamer
The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw...
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com