Use constantize instead of eval