in reply to Re: Merging two pipes
in thread Merging two pipes

Thanks to all of you!

I must admit I didn't make my problem quite clear but your comments put me on the right trail. IO::Select did the trick for me and now my script works like I want it to.