2009-06-30 04:17:39 +00:00
|
|
|
#
|
|
|
|
# a local variable can shade a function name and other local variables.
|
|
|
|
#
|
|
|
|
|
2009-06-29 07:41:47 +00:00
|
|
|
function a (x) { print x; }
|
2009-06-27 20:50:54 +00:00
|
|
|
|
|
|
|
BEGIN {
|
2009-06-30 04:17:39 +00:00
|
|
|
|
2009-06-29 07:41:47 +00:00
|
|
|
{
|
2012-11-20 14:44:43 +00:00
|
|
|
@local a;
|
2009-06-30 04:17:39 +00:00
|
|
|
a = 50;
|
|
|
|
{
|
2012-11-20 14:44:43 +00:00
|
|
|
@local a;
|
2009-06-30 04:17:39 +00:00
|
|
|
a = 30;
|
|
|
|
print a;
|
|
|
|
}
|
2009-06-29 07:41:47 +00:00
|
|
|
print a;
|
|
|
|
}
|
2009-06-30 04:17:39 +00:00
|
|
|
|
|
|
|
a (100);
|
2009-06-27 20:50:54 +00:00
|
|
|
}
|