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

Perl: perl

LCD 47 edited this page Jun 12, 2016 · 14 revisions

This file is no longer maintained

This file exists only as a historic reference. Documentation for syntastic checkers is now included in the manual, please see :help syntastic-checkers in Vim.


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

There is also a buffer-local version of this variable, that takes precedence over it in the buffers where it is defined.

Please note that setting this variable doesn't automatically enable the checker, you still need to add it to g:syntastic_perl_checkers if you want to use it.

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