In your second eval you are using double quotes ("). In a double quoted string, variables interpolate. Since you are using strict the vars in that double quoted string need to be declared. Although, I am guessing from the code that you actually want single quotes, just like your first eval.