source:
trunk/essentials/sys-apps/gawk/test/arryref2.awk
Last change on this file was 3076, checked in by , 18 years ago | |
---|---|
File size: 149 bytes |
Line | |
---|---|
1 | BEGIN { |
2 | foo(a) |
3 | |
4 | for (i in a) |
5 | print i, a[i] |
6 | } |
7 | |
8 | function foo(b) |
9 | { |
10 | bar(b) |
11 | b[2] = "local" |
12 | } |
13 | |
14 | function bar(c) |
15 | { |
16 | a[3] = "global" |
17 | c[1] = "local2" |
18 | } |
Note:
See TracBrowser
for help on using the repository browser.