Eclipse has that nice way of marking the line with a compilation error with a red dot on the side. The error message is
This is on the line where I include Expect (use Expect;) Given the dependencies I learned about from the replies here, it is possible that the Expect module is found but some dependencies are missing and therefore the error is inside the module where other modules (that are missing) are being included and Eclipse can only flag the "use Expect;" line for obvious reasons (if this is indeed the case).