diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-12 05:48:28 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-12 05:48:28 +0300 |
commit | a2d6f6d61eef50ad7d62365dafff756c79ef40b8 (patch) | |
tree | 6a687ae3e28fe0a83e9b03e303464e4ca8921118 /doc/gawk.texi | |
parent | 45f3921952d80eacdf0055e620285694658e50c3 (diff) | |
parent | 1bf8cb336c599fdd14a2c37d719f7c8879dd830a (diff) | |
download | egawk-a2d6f6d61eef50ad7d62365dafff756c79ef40b8.tar.gz egawk-a2d6f6d61eef50ad7d62365dafff756c79ef40b8.tar.bz2 egawk-a2d6f6d61eef50ad7d62365dafff756c79ef40b8.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index a4a1e8d7..64d72b7a 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -15386,9 +15386,28 @@ function multiply(variable, amount) @} @end example +@noindent +You would use it like this: + +@example +BEGIN @{ + answer = 10.5 + multiply("answer", 4) + print "The answer is", answer +@} +@end example + +@noindent +When run, this produces: + +@example +$ @kbd{gawk -f answer.awk} +@print{} The answer is 42 +@end example + @quotation NOTE -In order to avoid severe time-travel paradoxes,@footnote{Not to mention difficult -implementation issues.} neither @code{FUNCTAB} nor @code{SYMTAB} +In order to avoid severe time-travel paradoxes,@footnote{Not to mention +difficult implementation issues.} neither @code{FUNCTAB} nor @code{SYMTAB} is available as an element within the @code{SYMTAB} array. @end quotation @end table |