You are creating a 3 thread process. The simplest way to do what you've described would be:
use strict; use warnings; use threads; async{ open my $In, ...; open my $out, ...; while( <$in> ) { print $out; } }->join;
And that's it. Of course it's not very useful as is, but then neither is what you posted.
In reply to Re: Two threaded program
by BrowserUk
in thread Two threaded program
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |