Correct use of eval

Using eval to test for the existence of perl modules requires to pass a
string, not a code block.