diff --git a/ftplugin/perl.vim b/ftplugin/perl.vim index 92c9714..f7fd2a3 100644 --- a/ftplugin/perl.vim +++ b/ftplugin/perl.vim @@ -30,7 +30,7 @@ endif " Provided by Ned Konz "--------------------------------------------- setlocal include=\\<\\(use\\\|require\\)\\> -setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.pm','') +setlocal includeexpr=substitute(substitute(substitute(v:fname,'::','/','g'),'->\*','',''),'$','.pm','') setlocal define=[^A-Za-z_] " The following line changes a global variable but is necessary to make