in reply to Re^5: To organize pipe right way.
in thread To organize pipe right way.

The code has other parts where variables are declared, that's why the posted code is not compiled w/ strict. Actually, i did not mean you will compile it, but rather a look and give me your feedback on possible reason of such pipe behaviour. So, do not look at the strict, or include in the file before your compilation. I publish code pieces as they are, basicly, because of «use POSIX qw( mkfifo )».

Seems to me that using «$|=1» is redundant here. By design, «$FIFO» has to do all the stuff OR «$|» w/o using «IO» module.

Also no need for «\n» in «print $FIFO 'pause'» becuse it works as bad as without it.

I did run your script and pause did not work a single time!

Replies are listed 'Best First'.
Re^7: To organize pipe right way.
by nikolay (Beadle) on Jun 29, 2016 at 06:34 UTC

    Finally, i have guessed how i did forking so that if flawlessly worked. But that part was done together w/ BaSh -- so no interest for the question in PERL here, I tried hard w/ PERL to do forking the way i wanted -- but gave up w/ PERL, in favour of BaSh.

    Thank you for all, who participated! I close my question here.