I was trying to initiate a hash that have 7 NAs as values.
This is what I have:
values %hash = ("NA") x 7;
print join("\t",values %hash),"\n";
I got this error:
Can't modify values in scalar assignment at line 22, near "7;"
Apparently, I can't do this with values of hash although I can assign array to hash keys
keys %hash = ["a","b","c","d","e","f","g"];
Why is it working for keys but not values for hash assignment?