in reply to Re: Nested foreach problemin thread Nested foreach problem
If you're reading into an array, you always get the whole file regardless of the value of $/. Also, local alone is enough to undef $/.