|
Packit |
575503 |
BEGIN {
|
|
Packit |
575503 |
# initialize cint arrays
|
|
Packit |
575503 |
pos[0] = 0
|
|
Packit |
575503 |
posout[0] = 0
|
|
Packit |
575503 |
split("00000779770060", f) # f[1] is a strnum
|
|
Packit |
575503 |
pos[f[1]] = 1 # subscripts must be strings!
|
|
Packit |
575503 |
for (x in pos) {
|
|
Packit |
575503 |
# if x is a strnum, then the
|
|
Packit |
575503 |
# x != 0 test may convert it to an integral NUMBER,
|
|
Packit |
575503 |
# and we might lose the unusual string representation
|
|
Packit |
575503 |
# if the cint code is not careful to recognize that this is
|
|
Packit |
575503 |
# actually a string
|
|
Packit |
575503 |
if (x != 0)
|
|
Packit |
575503 |
posout[x] = pos[x]
|
|
Packit |
575503 |
}
|
|
Packit |
575503 |
# which array element is populated?
|
|
Packit |
575503 |
print posout[779770060]
|
|
Packit |
575503 |
print posout["00000779770060"]
|
|
Packit |
575503 |
}
|