http://www.perlmonks.org?node_id=612417


in reply to syntax check with Vim

Finally I create the file ~/.vim/ftplugin and added...

ftplugin should be a directory, not a file.

Create the directory ~/.vim/ftplugin and put perl.vim there (instead of ~/.vim). The plugin will load automatically now, since you already have filetype plugin on.