|We don't bite newbies here... much|
Re: File handle passing issue under *nixby McA (Priest)
|on Sep 30, 2013 at 19:16 UTC||Need Help??|
as I have to do penance for my sarcastic answer in another thread of today, here my points:
1) You subcommand2.pl test is IMHO a false positive. As soon as you read twice you also get this stuck behaviour. Try this:
So, it's the same as subcommand1.pl. You're just kidding yourself.
2) As soon as you modify your main.pl to the following, it works:
You see, that the unnecessary ends of the pipe are closed. See http://man7.org/linux/man-pages/man2/pipe.2.html for the description.