in reply to Re^4: Multiple asynchronous execution of commands
in thread Multiple asynchronous execution of commands

# work around parsing problem with <$fh$i> below

You can avoid the unnecessary assignment by using readline, the function that underlies that version of the diamond operator, like so:

while (defined (my $line = readline( $fh[ $i ] ) ) ) {

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^6: Multiple asynchronous execution of commands
by ibm1620 (Hermit) on Jan 23, 2016 at 23:03 UTC
    Modified code snippet above.