$key2value{"a"} and $key2value->{"a"} are two different and absolutely unrelated things. The first attempts to get the value of the key "a" in hash %key2value, the other in the hash referenced by the scalar variable $key2value. Two different variables, no surprise that you do not find anything in one after you wrote to the other.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re^5: Creating a hash out of multiple XML attributes in an elment
by Jenda
in thread Creating a hash out of multiple XML attributes in an elment
by perlvroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |