Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Hash Pipe Problemby NateTut (Deacon) |
on Feb 26, 2009 at 19:21 UTC ( [id://746636]=perlquestion: print w/replies, xml ) | Need Help?? |
NateTut has asked for the wisdom of the Perl Monks concerning the following question:
I have reduced my problem to the following:
I have two scripts, A.ksh & B.ksh. Each is identical and they look like:
My goal is to write a Perl script that executes them in parallel and prints their output. This is what I have:
And this is what I get:
And of course it hangs there. Obviously $Line{$Type} = <$ProcesseHandle{$Type}>; isn't doing what I expect. Why? Also is there a better way to do while(!$IsFinished{'A'} or !$IsFinished{'B'}) so I don't have to hardcode the keys? Thanks!
Back to
Seekers of Perl Wisdom
|
|