# foo.pl print "this is a "syntax" error"; # test.pl eval q{ my $fl = "foo.pl"; require "$fl"; }; __output__ Bareword found where operator expected at foo.pl line 1, near ""this is a "syntax" (Missing operator before syntax?) String found where operator expected at foo.pl line 1, near "syntax" error""