| 49 | | (let ((path-list (cdr (split-string buffer-file-name "/")))) |
| 50 | | (if (setf lib-path (perllib-check-path path-list "")) |
| 51 | | (let () |
| 52 | | (setenv "PERL5LIB" lib-path) |
| 53 | | (message (concat "PERL5LIB=" lib-path)))))) |
| | 49 | (let* ((path-list (cdr (split-string buffer-file-name "/"))) |
| | 50 | (lib-path (perllib-check-path path-list "")) |
| | 51 | (current-perl5lib (getenv "PERL5LIB"))) |
| | 52 | (when (and lib-path |
| | 53 | (not (string-match lib-path current-perl5lib))) |
| | 54 | (setenv "PERL5LIB" (concat lib-path ":" current-perl5lib)) |
| | 55 | (message "Added %s into PERL5LIB" lib-path)))) |