I'm sorry, there's no way I can read that code. Do you have something against white-space? Perhaps you could give perltidy a try? And while you're at it, how about a "use strict"?
-sam
Comment on Re: How to use pty for both STDERR AND STDOUT in IPC::Run, while doing something different with each?
Yes, you should make code you post here maximally readable and as short as possible. I bet lots of people that could have helped you skipped right past your post when they saw that god-awful block of code.
I don't know if "use strict" will solve your problem, but it certainly can't hurt!
Whoops, just saw this. Seems like "maximally readable" and "as short as possible" are conflicting. I think I will just edit out everything but the run() part and leave it at that.
_________________________________________________________________________________
Without me, it's just aweso
Moderately. That run() line is still nuts and you've got a lot of lines with far too few spaces in the top chunk. But's definitely a lot more readable now.