|Welcome to the Monastery|
Error "Compilation failed in require" with "use" syntaxby SuzuBell (Acolyte)
|on Sep 16, 2013 at 02:46 UTC||Need Help??|
SuzuBell has asked for the
wisdom of the Perl Monks concerning the following question:
I recently asked this on stackoverflow.com, and nobody could figure it out.
I am using Perl in Eclipse. In the same directory, I have one .pl file and two .pm files (pmFile1.pm, pmFile2.pm). At the top of the .pl file, I use the command:
I get an error: "Compilation failed in require". This is the entire warning. When I type into command line the following command:
I get the following warning in my terminal: "syntax error at -e line 1, near "use pmFile1." Execution of -e aborted due to compilation errors"
I also tried right-clicking on the project directory in Project Explorer, selecting "Properties", selecting "Perl Include Path", and then adding the directory that contains the two files. Still, even after restarting Eclipse, and checking that the directory path is still there, the error remains.
I would be grateful to hear any advice on this! I have been stumped for days. Thank you.