in reply to FYI, changing $/ "on the fly"

i guess because i couldnt use local with $/ i should set $/ ="\n" at the end of the loop.