qse/ase/test/awk/t3.awk

26 lines
237 B
Awk
Raw Normal View History

2006-07-10 14:28:46 +00:00
//global x, j;
2006-04-19 02:52:53 +00:00
func func1 (x)
{
c = x["abc"];
x["abc"] = 123;
}
2006-08-04 06:39:05 +00:00
BEGIN {
2006-04-19 02:52:53 +00:00
idx="abc";
x[idx] = 12345;
i = x[idx];
2006-04-20 05:44:29 +00:00
x["1"] = 1;
x["2"] = 2;
2006-04-19 02:52:53 +00:00
func1 (x);
k = x[idx];
return j;
/*
x["abc"] = 12345;
i = x["abc"];
return j;
*/
}