Files
qse/qse/regress/awk/lang-007.awk
hyung-hwan c2668bbe26 changed the way to handle @words.
switched global, local, reset, abort to @global, @local, @reset, @abort to avoid collision with existing awk programs
2012-11-20 14:44:43 +00:00

20 lines
214 B
Awk

#
# depending on where a variable name appeared, a variable name can be
# a global variable or a named variable.
#
function fn ()
{
a = 20;
return a;
}
@global a;
BEGIN {
a = 30
print fn ()
print a
}