Hi all,
I'm new to the list and would first like to say that I am very impressed by
how supportive this community is! I've already learned quite a bit just by
reading the questions and informative answers coming across my email.
Now, please forgive me forgive me on this question as I'm sure I am
overlooking something quite simple.
Could someone shed some light as to why I can't seem to reassign a value to
an element in my hash?
I'm trying to reassign $MoneyMenu[2]{t} to "New Text" below. I have
simplified my problem into the code below, including extra printing to
debug, and I have confirmed that it is still giving me the undesired result.
Thanks in advance for your help!
-- Darin
## here are values I am trying to use to reassign "New Text" into my array
of hashes
$in{t} = 'New Text';
$in{menu} = 'MoneyMenu';
$in{item} = '2';
## confiriming here that values are what I expect
print "T=$in{t} menu=$in{menu} item=$in{item}\n";
## prints out T=New Text menu=MoneyMenu item=2
$MoneyMenu[2]{t} = 'Text I Want Changed';
## try to change text
$$in{menu}[$in{item}]{t}=$in{t};
print "$MoneyMenu[2]{t}\n";
## does not change to new text!!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]