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 ] ) ) ) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Multiple asynchronous execution of commands
by ibm1620 (Hermit) on Jan 23, 2016 at 23:03 UTC |