When eval fails, I often find it enlightening to look at the code without the eval. I think Perl will tell you what it does not like about your code. Perl will also tell you about what it does not like when using eval in $@.
In your case, look at perlop, especially the "Quotes and Quote-like operators". If you want something treated as a string for a hash, properly quote it instead of using barewords.
In reply to Re: eval doesn't like the letter 'q'?
by Corion
in thread eval doesn't like the letter 'q'?
by rastoboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |