Are you sure your arrays are "missing". When I run your code on my machine, it produces output (names and values padded and seperated by ':'). BTW, if all you want to do is add some format to these lines, there are much less convoluted solutions than the one you give above: