plenv

https://github.com/karupanerura/plenv.el.git

git clone 'git://github.com/karupanerura/plenv.el.git'
3

Configuration

In your .emacs.d/init.el:

(require 'plenv)
(plenv-global "perl-5.12.3") ;; initialize perl version to use

Use with flymake-perl

In your .emacs.d/init.el:

(require 'plenv) ;; for guess-plenv-perl-path
(require 'flymake)

(defun flymake-perl-init ()
  (let* ((temp-file (flymake-init-create-temp-buffer-copy
                     'flymake-create-temp-with-folder-structure))
         (local-file (file-relative-name
                      temp-file
                      (file-name-directory buffer-file-name))))
    (list (guess-plenv-perl-path) (list "-wc" local-file))))

(push '(".+\\.p[ml]$" flymake-perl-init) flymake-allowed-file-name-masks)
(push '(".+\\.psgi$" flymake-perl-init) flymake-allowed-file-name-masks)
(push '(".+\\.t$" flymake-perl-init) flymake-allowed-file-name-masks)

Commands

Utilities