In the second method, the contents inside the eval() function should be enclosed within single quotes, implying that eval() takes only one parameter as string and that is the PERL script itself.