Your example output could not come from the code you show: there would be a blank line after the first line of output. It is hard to help when you confuse things like that.
Dum Spiro Spero
Comment on Re: Trying to capture a value from a list of values