qse/qse/regress/awk/lang-005.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

22 lines
212 B
Awk

#
# a local variable can shade a function name and other local variables.
#
function a (x) { print x; }
BEGIN {
{
@local a;
a = 50;
{
@local a;
a = 30;
print a;
}
print a;
}
a (100);
}