diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-05-14 18:50:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-14 18:50:25 +0100 |
commit | b7398fe41c9e1e731d058105a34158871ee83e3f (patch) | |
tree | d1d20b18bffd1bc554fbe0212eee3643adacda54 /runtime/doc/if_perl.txt | |
parent | e5d91ba1de83949eb9357c0fb8cbd91e7e69be6f (diff) |
Update runtime files
Diffstat (limited to 'runtime/doc/if_perl.txt')
-rw-r--r-- | runtime/doc/if_perl.txt | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/runtime/doc/if_perl.txt b/runtime/doc/if_perl.txt index 281185bb33..7949e91732 100644 --- a/runtime/doc/if_perl.txt +++ b/runtime/doc/if_perl.txt @@ -1,4 +1,4 @@ -*if_perl.txt* For Vim version 9.0. Last change: 2022 Mar 13 +*if_perl.txt* For Vim version 9.0. Last change: 2023 May 14 VIM REFERENCE MANUAL by Sven Verdoolaege @@ -254,23 +254,14 @@ $main::curbuf *script-here* When using a script language in-line, you might want to skip this when the -language isn't supported. But this mechanism doesn't work: > +language isn't supported. > if has('perl') perl << EOF - this will NOT work! + print 'perl works' EOF endif -Instead, put the Perl/Python/Ruby/etc. command in a function and call that -function: > - if has('perl') - function DefPerl() - perl << EOF - this works - EOF - endfunction - call DefPerl() - endif -Note that "EOF" must be at the start of the line. +Note that "EOF" must be at the start of the line without preceding white +space. ============================================================================== 4. Dynamic loading *perl-dynamic* |