gawk: Calling A Function
1
1 9.2.3.1 Writing a Function Call
1 ...............................
1
1 A function call consists of the function name followed by the arguments
1 in parentheses. 'awk' expressions are what you write in the call for
1 the arguments. Each time the call is executed, these expressions are
1 evaluated, and the values become the actual arguments. For example,
1 here is a call to 'foo()' with three arguments (the first being a string
1 concatenation):
1
1 foo(x y, "lose", 4 * z)
1
1 CAUTION: Whitespace characters (spaces and TABs) are not allowed
1 between the function name and the opening parenthesis of the
1 argument list. If you write whitespace by mistake, 'awk' might
1 think that you mean to concatenate a variable with an expression in
1 parentheses. However, it notices that you used a function name and
1 not a variable name, and reports an error.
1