It was stated only in :h perl-overview alongside with other examples.

# HG changeset patch
# User ZyX <[email protected]>
# Date 1351072849 -14400
# Node ID 6f110cb9089b4c875af465d136229a3154425212
# Parent  57e8b75298d6b6e9ef899af66c79a22cb6334988
Added information about returning value of VIM::Eval in scalar context

diff -r 57e8b75298d6 -r 6f110cb9089b runtime/doc/if_perl.txt
--- a/runtime/doc/if_perl.txt   Tue Oct 23 05:35:09 2012 +0200
+++ b/runtime/doc/if_perl.txt   Wed Oct 24 14:00:24 2012 +0400
@@ -175,7 +175,8 @@
 VIM::DoCommand({cmd})  Executes Ex command {cmd}.
 
                                                        *perl-Eval*
-VIM::Eval({expr})      Evaluates {expr} and returns (success, val).
+VIM::Eval({expr})      Evaluates {expr} and returns (success, value) in list 
+                       context or just value in scalar context.
                        success=1 indicates that val contains the value of
                        {expr}; success=0 indicates a failure to evaluate
                        the expression.  '@x' returns the contents of register

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
*** /tmp/extdiff.ZgfgXr/vim.57e8b75298d6/runtime/doc/if_perl.txt	2012-10-24 14:00:46.000000000 +0400
--- vim.6f110cb9089b/runtime/doc/if_perl.txt	2012-10-24 14:00:46.000000000 +0400
***************
*** 175,181 ****
  VIM::DoCommand({cmd})	Executes Ex command {cmd}.
  
  							*perl-Eval*
! VIM::Eval({expr})	Evaluates {expr} and returns (success, val).
  			success=1 indicates that val contains the value of
  			{expr}; success=0 indicates a failure to evaluate
  			the expression.  '@x' returns the contents of register
--- 175,182 ----
  VIM::DoCommand({cmd})	Executes Ex command {cmd}.
  
  							*perl-Eval*
! VIM::Eval({expr})	Evaluates {expr} and returns (success, value) in list 
! 			context or just value in scalar context.
  			success=1 indicates that val contains the value of
  			{expr}; success=0 indicates a failure to evaluate
  			the expression.  '@x' returns the contents of register

Raspunde prin e-mail lui