I am using the Sublime Text 2 editor to develop Perl, and now I am facing the following problem. I have a project:
/home/alex/workspace/
In this project, I have libraries under:
/home/alex/workspace/lib/
While I am editing the file:
/home/alex/workspace/test.pl
and in this file I am trying to load the library:
/home/alex/workspace/lib/myLib.pm
I have a code like this:
sublimelinter cannot find this library because it is not located by default on the @INC path. Is there a way to change Perl @INC for sublimelinter without changing the script source code?
I tried using for project parameters for linter as follows:
{ "folders": [ { "path": "/home/alex/workspace" } ], "settings": { "SublimeLinter": { "Perl" : { "lint_args": [ "-I", "/home/alex/workspace/lib", "-c", "{filename}" ] } } } }
But that does not help.
alexK source share