in reply to weird print results

Odd.
My guess would be that some of the data in @results is not formed in the way that you expect.
A couple of suggestions:

Cheers,
Darren :)