Okay, now I see, however, $hash{key} is even not a valid name for a scalar variable.br>
Be careful about this subtle difference: $hash{key} is the valid syntax to point to a hash element, which is a scalar, but it is not the valid syntax to name a scalar.