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.
In reply to Re: quotation mark as key
by roboticus
in thread quotation mark as key
by ic23oluk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |