in reply to parse array to replace specific spaces with pipes
jethro's solution seems to be the most natural for me. In your solution, I don't see where $_ gets its value. Does fetchrow_array silently sets it?