I assume in the second line of your "while" loop that you meant @pairs =~ /(..)/g; right?
In reply to Re^2: convert rows to columns by ack in thread convert rows to columns by b00mIR