aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/health/provider.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/autoload/health/provider.vim')
-rw-r--r--runtime/autoload/health/provider.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim
index 0482cb7f3c..be8d60dbf8 100644
--- a/runtime/autoload/health/provider.vim
+++ b/runtime/autoload/health/provider.vim
@@ -695,10 +695,10 @@ function! s:check_perl() abort
\ ['Install Perl and cpanminus and verify that `perl` and `cpanm` commands work.'])
return
endif
- let perl_v = get(split(s:system(['perl', '-W', '-e', 'print $^V']), "\n"), 0, '')
- call health#report_info('Perl: '. perl_v)
+
+ call s:system(['perl', '-e', 'use v5.22'])
if s:shell_error
- call health#report_warn('Nvim perl host does not support '.perl_v)
+ call health#report_warn('Perl version is too old, 5.22+ required')
" Skip further checks, they are nonsense if perl is too old.
return
endif