qse/ase/test/awk/t3.awk

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;
*/
}