-
Notifications
You must be signed in to change notification settings - Fork 1.1k
(v3.7.0) Perl: perl
- Anthony Carapetis anthony.carapetis@gmail.com
- Eric Harmon http://eharmon.net
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 = 1There 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.
- 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:
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.