blob: d04863f51dbad111e991bd1cb10a2329bb024bd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
@namespace "test"
BEGIN {
bar = 3
}
@namespace "awk"
BEGIN {
print "before change, direct =", test::bar, "indirect =", SYMTAB["test::bar"]
SYMTAB["test::bar"] = 4
print "after change, direct =", test::bar, "indirect =", SYMTAB["test::bar"]
}
|