in reply to Hash Table - can special characters be stored as Keys?
Perl hash keys are strings, and in most cases, you need to quote them whenever Perl does not recognize them as single words:
$hashTable{'%(Math_value)'} = "pi";
As a quick rule, Perl will accept all ASCII words as an unquoted hash key that matche /^\w+$/.
|
|---|