in reply to bareword hash keys

Why not just get into the habit of using $XX{"+c"} = 3; or $XX{'+c'} = 3;?

Edited: I know this does not answer your question, but I am really wondering what advantage you get by using barewords that is worth putting special logic in your code to stop people from for instance using a +c as the key.

-Waswas

Replies are listed 'Best First'.
Re: Re: bareword hash keys
by John M. Dlugosz (Monsignor) on Jun 23, 2003 at 04:55 UTC
    Because it was a royal pain before the bareword-as-key feature! I don't want to go back.