qse/regress/awk/lang-003.awk

6 lines
127 B
Awk

# a parameter can shade a named variable.
# it should print 50
BEGIN { f = 50; fn(100); print f; }
function fn(f) { f = 20; }