garu/Data-Printer — Issue #13: Not enough care for hash keys
Author: mvuets
Created: 2012-01-23 23:17:47+00:00
State: open

Self explanatory code example:

```
$ perl -MData::Printer -e '$v={q()=>"empty", q( )=>"blank", qq(\0\0\0)=>"unescaped", qq(new\nline)=>"multiline"}; p $v'
\ {
=> "empty",
=> "unescaped",
=> "blank",
new
line => "multiline"
}
```

(Today I was confused about a hash dump that had an empty string key; it is especially confusing having hash_separator set to default value.)

Probably it would be good to surround key names with quotes if they contain any blank chars (but don't color them so still can distinguish between key quotes and key itself).