4 ms·
http://cowlark.com/mercat/com.awk.txt http://cowlark.com/mercat/com.awk.txt This is neat! Question for you regarding the formatting/syntax used- Why the slas
by jaytaylor 10y ago
http://cowlark.com/mercat/com.awk.txt http://cowlark.com/mercat/com.awk.txt
This is neat! Question for you regarding the formatting/syntax used-
Why the slash-newlines in function declarations?
E.g.
function scope(name, \
s) {
- augustk 10y agoAwk does not support local variables. However, to simulate local variables you can add extra function parameters. I would guess that the backslash is inserted to separate the "real" parameters from the "local variable" parameters to make the code more readable. In your example, when the function `scope' is called only one actual parameter would be provided.