in reply to quotation mark as key
Sure, you can do that:
my %t = ('"'=>1);
You just have to either escape it correctly or use alternative quoting mechanisms.
However, making a hash to hold a character and it's corresponding ASCII value isn't necessary since the ord function will give you the ASCII value for an ASCII character.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|