Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

(v3.5.0) Perl: perl

LCD 47 edited this page Dec 13, 2014 · 1 revision

Maintainers:

Security:

This checker runs perl -c against your file, which in turn executes any BEGIN, UNITCHECK, and CHECK blocks, and any use statements in your file (see perlrun). This is probably fine if you wrote the file yourself, but it can be a problem if you're trying to check third party files. If you are 100% willing to let Vim run the code in your file, set g:syntastic_enable_perl_checker to 1 in your vimrc to enable this checker:

let g:syntastic_enable_perl_checker = 1

Checker options:

g:syntastic_perl_interpreter (string; default: 'perl')
The perl interpreter to use.
g:syntastic_perl_lib_path (list; default: [])
List of include directories to be added to the perl command line. Example:
```vim let g:syntastic_perl_lib_path = [ './lib', './lib/auto' ] ```

Note:

The variable g:syntastic_perl_interpreter is shared with the yaml/yamlxs checker. If for some reasons you don't want to use the same interpreter for both checkers, you can override it locally by setting g:syntastic_perl_perl_exec.

Clone this wiki locally