in reply to use XML::LibXML; is causing compile error

Show us your code. Especially the line with the require in it. Also, Perl is usually more informative about its errors than what you transcribed - Perl tells you what file it tried to require, and which line number that happened.

If you really, really think that this happens on a line use XML::LibXML; or require XML::LibXML;, then likely, XML::LibXML is not installed for whatever Perl Eclipse runs.