Why do you want to do it without pipes, which would seem the logical way to solve this?