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"]
}
|