in reply to outputing specific co-ordinates

Comma.
say $OUTPUTFILE, "$index\t$value";