Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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. In reply to Error "Compilation failed in require" with "use" syntax by SuzuBell
|
|