in reply to Re^7: foreach type of deal?in thread foreach type of deal?
I got it!!! The error was coming from:
close $in
close $out
They were outside of the block! :D. Now the whole thing works flawlessly. Thanks again for everything!