in reply to Re^2: foreach not doing what I expect it to be doing
in thread foreach not doing what I expect it to be doing

That, or open it with >> instead of >. But your solution is better overall, I am just stating a TIMTOWTDI.

Update: Mental note, read all replies before responding!