Menu

Difficulties with @INC

Help
2006-12-06
2013-05-20
  • Dennis Ballance

    Dennis Ballance - 2006-12-06

    I have a project that includes files that reference a .pm in a folder not included in the project. Even though I have included the path to that .pm in the project properties "Perl Include Path", the Problems window shows the error "Can't locate myexternal.pm in @INC (@INC contains: C:/Perl/Lib C:/Perl/site/lib)". What do I need to do to have the warning correctly show @INC that includes my additional search paths?

    I have tried both forward- and backward-slashes in the Perl Include Path entries. Neither seems to change this.

    I'm using EPIC 0.5.24, Eclipse 3.2.1.

    Thanks for any assistance.
    -Dennis

     
    • Jan Ploski

      Jan Ploski - 2006-12-06
       
    • Dennis Ballance

      Dennis Ballance - 2006-12-08

      Well, mystery solved, and I'm pleased to report it was a rookie error and nothing to do with EPIC. The error message was being generated by a separate project, whose @INC had not been changed. (I am sorry to have posted an erroneous question).

      I do have a followup question - if I wanted to manually run the syntax check (i.e. from a console rather than from within Eclipse), what is the command for that?

       
      • Jan Ploski

        Jan Ploski - 2006-12-08

        The command is "perl -c". Of course, you also need to specify your include path if you try it (for example "perl -I c:/this -I c:/that -c script.pl").

         
        • Dennis Ballance

          Dennis Ballance - 2006-12-08

          Thanks! Just what I needed.

           

Log in to post a comment.