qse/ase/cmd/awk/t3.awk
2008-03-21 03:49:53 +00:00

26 lines
240 B
Awk

#global x, j;
function func1 (x)
{
c = x["abc"];
x["abc"] = 123;
}
BEGIN {
idx="abc";
x[idx] = 12345;
i = x[idx];
x["1"] = 1;
x["2"] = 2;
func1 (x);
k = x[idx];
return j;
/*
x["abc"] = 12345;
i = x["abc"];
return j;
*/
}